mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 10:30:38 +00:00
Canonicalize number before getting/setting contact info
This commit is contained in:
parent
eca1737d28
commit
cfd1e5544d
3 changed files with 18 additions and 10 deletions
|
@ -6,6 +6,7 @@ import org.freedesktop.dbus.DBusInterface;
|
|||
import org.freedesktop.dbus.DBusSignal;
|
||||
import org.freedesktop.dbus.exceptions.DBusException;
|
||||
import org.whispersystems.signalservice.api.push.exceptions.EncapsulatedExceptions;
|
||||
import org.whispersystems.signalservice.api.util.InvalidNumberException;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.List;
|
||||
|
@ -20,9 +21,9 @@ public interface Signal extends DBusInterface {
|
|||
|
||||
void sendGroupMessage(String message, List<String> attachments, byte[] groupId) throws EncapsulatedExceptions, GroupNotFoundException, AttachmentInvalidException, IOException;
|
||||
|
||||
String getContactName(String number);
|
||||
String getContactName(String number) throws InvalidNumberException;
|
||||
|
||||
void setContactName(String number, String name);
|
||||
void setContactName(String number, String name) throws InvalidNumberException;
|
||||
|
||||
List<byte[]> getGroupIds();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue