mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 10:30:38 +00:00
Improve dbus register error message if called with invalid number
This commit is contained in:
parent
8bcd8d87d2
commit
5743cf4455
3 changed files with 8 additions and 2 deletions
|
@ -21,6 +21,7 @@ import org.asamk.signal.manager.storage.protocol.SignalProtocolStore;
|
|||
import org.asamk.signal.manager.storage.recipients.Contact;
|
||||
import org.asamk.signal.manager.storage.recipients.LegacyRecipientStore;
|
||||
import org.asamk.signal.manager.storage.recipients.Profile;
|
||||
import org.asamk.signal.manager.storage.recipients.RecipientAddress;
|
||||
import org.asamk.signal.manager.storage.recipients.RecipientId;
|
||||
import org.asamk.signal.manager.storage.recipients.RecipientStore;
|
||||
import org.asamk.signal.manager.storage.sessions.SessionStore;
|
||||
|
@ -789,7 +790,7 @@ public class SignalAccount implements Closeable {
|
|||
}
|
||||
|
||||
public RecipientId getSelfRecipientId() {
|
||||
return recipientStore.resolveRecipientTrusted(getSelfAddress());
|
||||
return recipientStore.resolveRecipientTrusted(new RecipientAddress(uuid, username));
|
||||
}
|
||||
|
||||
public String getEncryptedDeviceName() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue