Fix rejoining group on linked device not showing as joined.

fork-5.53.8
Cody Henthorne 2022-03-03 11:23:23 -05:00 zatwierdzone przez Alex Hart
rodzic 41b5813984
commit 35199abf1f
1 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -315,7 +315,7 @@ public class GroupsV2StateProcessor {
throw new IOException(e);
}
if (localState != null && localState.getRevision() >= latestServerGroup.getRevision()) {
if (localState != null && localState.getRevision() >= latestServerGroup.getRevision() && GroupProtoUtil.isMember(selfAci.uuid(), localState.getMembersList())) {
Log.i(TAG, "Local state is at or later than server");
return new GroupUpdateResult(GroupState.GROUP_CONSISTENT_OR_AHEAD, null);
}
@ -329,6 +329,8 @@ public class GroupsV2StateProcessor {
boolean includeFirstState = forceIncludeFirst ||
localState == null ||
localState.getRevision() < 0 ||
localState.getRevision() == revisionWeWereAdded ||
!GroupProtoUtil.isMember(selfAci.uuid(), localState.getMembersList()) ||
(revision == LATEST && localState.getRevision() + 1 < latestServerGroup.getRevision());
Log.i(TAG,