mirror of
https://github.com/AsamK/signal-cli
synced 2025-09-02 20:40:38 +00:00
Added trim
This commit is contained in:
parent
21f5bb70b8
commit
d88c65067c
1 changed files with 2 additions and 2 deletions
|
@ -76,8 +76,8 @@ public class SignalProfile {
|
|||
}
|
||||
|
||||
public String getDisplayName() {
|
||||
// First name and last name (if set) are separated by a NULL char
|
||||
return name == null ? null : name.replace("\0", " ");
|
||||
// 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();
|
||||
}
|
||||
|
||||
public String getAbout() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue