Don't synchronize MMS groups to sibling devices

Fixes #6934
// FREEBIE
This commit is contained in:
Moxie Marlinspike 2017-09-07 11:12:57 -07:00
parent 6d1f4bc2f0
commit 962fb60ffb

View File

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