mirror of
https://github.com/oxen-io/session-android.git
synced 2025-01-12 20:43:39 +00:00
Cleanup Recipient
This commit is contained in:
parent
73bd407203
commit
e001ccb283
@ -331,11 +331,11 @@ public class Recipient implements RecipientModifiedListener {
|
||||
} else if (isOpenGroupInboxRecipient()){
|
||||
String inboxID = GroupUtil.getDecodedOpenGroupInboxAccountId(accountID);
|
||||
Contact contact = storage.getContactWithAccountID(inboxID);
|
||||
if (contact == null) { return accountID; }
|
||||
if (contact == null) return accountID;
|
||||
return contact.displayName(Contact.ContactContext.REGULAR);
|
||||
} else {
|
||||
Contact contact = storage.getContactWithAccountID(accountID);
|
||||
if (contact == null) { return null; }
|
||||
if (contact == null) return null;
|
||||
return contact.displayName(Contact.ContactContext.REGULAR);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user