fix crash & empty nickname bug

This commit is contained in:
Ryan ZHAO
2021-04-30 15:36:50 +10:00
parent a1edfb13ee
commit e64ac14b77
3 changed files with 5 additions and 2 deletions

View File

@@ -288,7 +288,7 @@ public class Recipient implements RecipientModifiedListener {
public synchronized @Nullable String getName() {
String displayName = MessagingModuleConfiguration.shared.getStorage().getDisplayName(this.address.toString());
if (displayName != null) { return displayName; }
if (displayName != null && !displayName.isEmpty()) { return displayName; }
if (this.name == null && isMmsGroupRecipient()) {
List<String> names = new LinkedList<>();