Cleanup Recipient

This commit is contained in:
bemusementpark 2024-07-16 01:32:03 +09:30
parent 73bd407203
commit e001ccb283

View File

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