Skip to content

Commit

Permalink
Group Migration: Don't bump to top of list if we're not in group
Browse files Browse the repository at this point in the history
Co-authored-by: Scott Nonnenberg <scott@signal.org>
  • Loading branch information
automated-signal and scottnonnenberg-signal committed Mar 2, 2022
1 parent d45a52b commit 6859ccd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ts/groups.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6859ccd

Please sign in to comment.