mirror of
https://github.com/aljazceru/signal-cli.git
synced 2026-02-05 14:04:19 +01: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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user