mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 10:30:38 +00:00
Dbus enhancements (#543)
* Dbus enhancements * reverted sendMessage, completed isContactBlocked, fixed formatting * Updates based on feedback and fixes * Added trim * fixed getContactName Exception handling
This commit is contained in:
parent
8d0de67530
commit
1d2c7a479d
4 changed files with 146 additions and 28 deletions
|
@ -529,7 +529,7 @@ public class Manager implements Closeable {
|
|||
ServiceConfig.AUTOMATIC_NETWORK_RETRY);
|
||||
}
|
||||
|
||||
private SignalProfile getRecipientProfile(
|
||||
public SignalProfile getRecipientProfile(
|
||||
SignalServiceAddress address
|
||||
) {
|
||||
return getRecipientProfile(address, false);
|
||||
|
|
|
@ -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