mirror of
https://github.com/AsamK/signal-cli
synced 2025-09-01 20:10:39 +00:00
Allow retreiving group member list as well
This commit is contained in:
parent
f04c0aed99
commit
5057161c90
2 changed files with 13 additions and 6 deletions
|
@ -21,9 +21,11 @@ public interface Signal extends DBusInterface {
|
|||
|
||||
String getContactName(String number);
|
||||
|
||||
void setContactName(String number, String name);
|
||||
|
||||
String getGroupName(byte[] groupId);
|
||||
|
||||
void setContactName(String number, String name);
|
||||
List<String> getGroupMembers(byte[] groupId);
|
||||
|
||||
void updateGroup(byte[] groupId, String name, List<String> members, String avatar) throws IOException, EncapsulatedExceptions, GroupNotFoundException, AttachmentInvalidException;
|
||||
|
||||
|
|
|
@ -785,11 +785,6 @@ class Manager implements Signal {
|
|||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getGroupName(byte[] groupId) {
|
||||
return getGroup(groupId).name;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setContactName(String number, String name) {
|
||||
ContactInfo contact = contactStore.getContact(number);
|
||||
|
@ -805,6 +800,16 @@ class Manager implements Signal {
|
|||
save();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getGroupName(byte[] groupId) {
|
||||
return getGroup(groupId).name;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<String> getGroupMembers(byte[] groupId) {
|
||||
return new ArrayList<String>(getGroup(groupId).members);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateGroup(byte[] groupId, String name, List<String> members, String avatar) throws IOException, EncapsulatedExceptions, GroupNotFoundException, AttachmentInvalidException {
|
||||
String optName = null;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue