mirror of
https://github.com/AsamK/signal-cli
synced 2025-09-01 20:10:39 +00:00
Remove non-functional option to set group name
This commit is contained in:
parent
d4d0f1c354
commit
c9454267d9
2 changed files with 0 additions and 16 deletions
|
@ -21,8 +21,6 @@ public interface Signal extends DBusInterface {
|
||||||
|
|
||||||
String getContactName(String number);
|
String getContactName(String number);
|
||||||
|
|
||||||
void setContactName(String number, String name);
|
|
||||||
|
|
||||||
String getGroupName(byte[] groupId);
|
String getGroupName(byte[] groupId);
|
||||||
|
|
||||||
class MessageReceived extends DBusSignal {
|
class MessageReceived extends DBusSignal {
|
||||||
|
|
|
@ -790,20 +790,6 @@ class Manager implements Signal {
|
||||||
return getGroup(groupId).name;
|
return getGroup(groupId).name;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void setContactName(String number, String name) {
|
|
||||||
ContactInfo contact = contactStore.getContact(number);
|
|
||||||
if(contact == null) {
|
|
||||||
contact = new ContactInfo();
|
|
||||||
contact.number = number;
|
|
||||||
System.out.println("Add contact " + number + " named " + name);
|
|
||||||
} else {
|
|
||||||
System.out.println("Updating contact " + number + " name " + contact.name + " -> " + name);
|
|
||||||
}
|
|
||||||
contact.name = name;
|
|
||||||
contactStore.updateContact(contact);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void requestSyncGroups() throws IOException {
|
private void requestSyncGroups() throws IOException {
|
||||||
SignalServiceProtos.SyncMessage.Request r = SignalServiceProtos.SyncMessage.Request.newBuilder().setType(SignalServiceProtos.SyncMessage.Request.Type.GROUPS).build();
|
SignalServiceProtos.SyncMessage.Request r = SignalServiceProtos.SyncMessage.Request.newBuilder().setType(SignalServiceProtos.SyncMessage.Request.Type.GROUPS).build();
|
||||||
SignalServiceSyncMessage message = SignalServiceSyncMessage.forRequest(new RequestMessage(r));
|
SignalServiceSyncMessage message = SignalServiceSyncMessage.forRequest(new RequestMessage(r));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue