Fix spurious assert in groups.ts

Co-authored-by: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com>
This commit is contained in:
automated-signal 2022-04-11 17:26:41 -07:00 committed by GitHub
parent e3d1c84647
commit 28f7ed09c0
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'