make it possible to set a client-side nickname

This commit is contained in:
Ryan ZHAO
2021-04-22 14:41:00 +10:00
parent d78dc83307
commit b94597a1f6
4 changed files with 39 additions and 6 deletions

View File

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