reverted change in manager

This commit is contained in:
Adimarantis 2021-03-07 19:37:23 +01:00
parent 5d6e1f56b5
commit 5d22f12027
2 changed files with 2 additions and 3 deletions

View file

@ -2365,8 +2365,7 @@ public class Manager implements Closeable {
final var profileEntry = account.getProfileStore().getProfileEntry(address); final var profileEntry = account.getProfileStore().getProfileEntry(address);
if (profileEntry != null && profileEntry.getProfile() != null) { if (profileEntry != null && profileEntry.getProfile() != null) {
String name = profileEntry.getProfile().getDisplayName(); return profileEntry.getProfile().getDisplayName();
return name==null?"":name;
} }
return null; return null;
} }

View file

@ -77,7 +77,7 @@ public class SignalProfile {
public String getDisplayName() { public String getDisplayName() {
// First name and last name (if set) are separated by a NULL char + trim space in case only one is filled // First name and last name (if set) are separated by a NULL char + trim space in case only one is filled
return name == null ? null : name.replace("\0", " ").trim(); return name == null ? "" : name.replace("\0", " ").trim();
} }
public String getAbout() { public String getAbout() {