mirror of
https://github.com/AsamK/signal-cli
synced 2025-09-03 04:50:37 +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() {
|
public String getDisplayName() {
|
||||||
// First name and last name (if set) are separated by a NULL char
|
// 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", " ");
|
return name == null ? null : name.replace("\0", " ").trim();
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getAbout() {
|
public String getAbout() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue