Only sync V1 groups with linked devices.
This commit is contained in:
parent
9dbb2ef630
commit
5c0cb425a6
2 changed files with 5 additions and 1 deletions
|
@ -693,6 +693,10 @@ public final class GroupDatabase extends Database {
|
||||||
return mms;
|
return mms;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean isV1Group() {
|
||||||
|
return !mms && !isV2Group();
|
||||||
|
}
|
||||||
|
|
||||||
public boolean isV2Group() {
|
public boolean isV2Group() {
|
||||||
return v2GroupProperties != null;
|
return v2GroupProperties != null;
|
||||||
}
|
}
|
||||||
|
|
|
@ -85,7 +85,7 @@ public class MultiDeviceGroupUpdateJob extends BaseJob {
|
||||||
reader = DatabaseFactory.getGroupDatabase(context).getGroups();
|
reader = DatabaseFactory.getGroupDatabase(context).getGroups();
|
||||||
|
|
||||||
while ((record = reader.getNext()) != null) {
|
while ((record = reader.getNext()) != null) {
|
||||||
if (!record.isMms()) {
|
if (record.isV1Group()) {
|
||||||
List<SignalServiceAddress> members = new LinkedList<>();
|
List<SignalServiceAddress> members = new LinkedList<>();
|
||||||
|
|
||||||
for (RecipientId member : record.getMembers()) {
|
for (RecipientId member : record.getMembers()) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue