Refactor to remove duplicated code, lint/prettier fixes

This commit is contained in:
Scott Nonnenberg 2018-05-07 17:51:29 -07:00
parent f628df1035
commit 1fd487be3f
5 changed files with 99 additions and 157 deletions

View file

@ -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;
}