Allow retreiving group member list as well

This commit is contained in:
Finn 2017-02-19 21:05:06 -08:00
parent f04c0aed99
commit 5057161c90
2 changed files with 13 additions and 6 deletions

View file

@ -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;

View file

@ -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;