mirror of
https://github.com/AsamK/signal-cli
synced 2025-09-01 20:10:39 +00:00
Add getGroupName method
This commit is contained in:
parent
beff4f91f0
commit
d4d0f1c354
2 changed files with 7 additions and 0 deletions
|
@ -23,6 +23,8 @@ public interface Signal extends DBusInterface {
|
||||||
|
|
||||||
void setContactName(String number, String name);
|
void setContactName(String number, String name);
|
||||||
|
|
||||||
|
String getGroupName(byte[] groupId);
|
||||||
|
|
||||||
class MessageReceived extends DBusSignal {
|
class MessageReceived extends DBusSignal {
|
||||||
private long timestamp;
|
private long timestamp;
|
||||||
private String sender;
|
private String sender;
|
||||||
|
|
|
@ -785,6 +785,11 @@ class Manager implements Signal {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getGroupName(byte[] groupId) {
|
||||||
|
return getGroup(groupId).name;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setContactName(String number, String name) {
|
public void setContactName(String number, String name) {
|
||||||
ContactInfo contact = contactStore.getContact(number);
|
ContactInfo contact = contactStore.getContact(number);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue