Fix spurious assert in groups.ts

This commit is contained in:
Fedor Indutny 2022-04-11 14:31:38 -07:00 committed by GitHub
parent 9f7ee9ae79
commit f77175f6b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -3893,7 +3893,10 @@ async function integrateGroupChange({
const newMembers = profileKeysToMembers(newProfileKeys);
if (groupChangeMessages.length !== 0 || newMembers.length !== 0) {
if (
canApplyChange &&
(groupChangeMessages.length !== 0 || newMembers.length !== 0)
) {
assert(
groupChangeMessages.length === 0,
'Fallback group state processing should not kick in'