Group Migration: Don't bump to top of list if we're not in group

Co-authored-by: Scott Nonnenberg <scott@signal.org>
This commit is contained in:
automated-signal 2022-03-01 16:41:04 -08:00 committed by GitHub
parent d45a52bc22
commit 6859ccd4ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -2662,11 +2662,11 @@ async function updateGroup(
const startingRevision = conversation.get('revision');
const endingRevision = newAttributes.revision;
const isInitialDataFetch =
!isNumber(startingRevision) && isNumber(endingRevision);
const isInGroup = !updates.newAttributes.left;
const isInitialDataFetch =
isInGroup && !isNumber(startingRevision) && isNumber(endingRevision);
const justJoinedGroup =
!conversation.hasMember(ourUuid.toString()) && isInGroup;
isInGroup && !conversation.hasMember(ourUuid.toString());
// Ensure that all generated messages are ordered properly.
// Before the provided timestamp so update messages appear before the