Refactor to remove duplicated code, lint/prettier fixes
This commit is contained in:
parent
f628df1035
commit
1fd487be3f
5 changed files with 99 additions and 157 deletions
|
@ -200,8 +200,8 @@ export { COLORS, CONTACTS, me, group };
|
|||
|
||||
parent.textsecure.storage.user.getNumber = () => ourNumber;
|
||||
parent.textsecure.messaging = {
|
||||
getProfile: async (number: string): Promise<Boolean> => {
|
||||
if (parent.ConversationController.get(number)) {
|
||||
getProfile: async (phoneNumber: string): Promise<boolean> => {
|
||||
if (parent.ConversationController.get(phoneNumber)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue