mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-27 20:15:21 +00:00
parent
6d1f4bc2f0
commit
962fb60ffb
@ -64,15 +64,17 @@ public class MultiDeviceGroupUpdateJob extends MasterSecretJob implements Inject
|
||||
reader = DatabaseFactory.getGroupDatabase(context).getGroups();
|
||||
|
||||
while ((record = reader.getNext()) != null) {
|
||||
List<String> members = new LinkedList<>();
|
||||
if (!record.isMms()) {
|
||||
List<String> members = new LinkedList<>();
|
||||
|
||||
for (Address member : record.getMembers()) {
|
||||
members.add(member.serialize());
|
||||
for (Address member : record.getMembers()) {
|
||||
members.add(member.serialize());
|
||||
}
|
||||
|
||||
out.write(new DeviceGroup(record.getId(), Optional.fromNullable(record.getTitle()),
|
||||
members, getAvatar(record.getAvatar()),
|
||||
record.isActive()));
|
||||
}
|
||||
|
||||
out.write(new DeviceGroup(record.getId(), Optional.fromNullable(record.getTitle()),
|
||||
members, getAvatar(record.getAvatar()),
|
||||
record.isActive()));
|
||||
}
|
||||
|
||||
out.close();
|
||||
|
Loading…
Reference in New Issue
Block a user