mirror of
https://github.com/AsamK/signal-cli
synced 2025-09-02 12:30:39 +00:00
reverted change in manager
This commit is contained in:
parent
5d6e1f56b5
commit
5d22f12027
2 changed files with 2 additions and 3 deletions
|
@ -2365,8 +2365,7 @@ public class Manager implements Closeable {
|
|||
|
||||
final var profileEntry = account.getProfileStore().getProfileEntry(address);
|
||||
if (profileEntry != null && profileEntry.getProfile() != null) {
|
||||
String name = profileEntry.getProfile().getDisplayName();
|
||||
return name==null?"":name;
|
||||
return profileEntry.getProfile().getDisplayName();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
|
|
@ -77,7 +77,7 @@ public class SignalProfile {
|
|||
|
||||
public String getDisplayName() {
|
||||
// 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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue