Group Migration: Don't bump to top of list if we're not in group
This commit is contained in:
@@ -2696,11 +2696,11 @@ async function updateGroup(
|
|||||||
const startingRevision = conversation.get('revision');
|
const startingRevision = conversation.get('revision');
|
||||||
const endingRevision = newAttributes.revision;
|
const endingRevision = newAttributes.revision;
|
||||||
|
|
||||||
const isInitialDataFetch =
|
|
||||||
!isNumber(startingRevision) && isNumber(endingRevision);
|
|
||||||
const isInGroup = !updates.newAttributes.left;
|
const isInGroup = !updates.newAttributes.left;
|
||||||
|
const isInitialDataFetch =
|
||||||
|
isInGroup && !isNumber(startingRevision) && isNumber(endingRevision);
|
||||||
const justJoinedGroup =
|
const justJoinedGroup =
|
||||||
!conversation.hasMember(ourUuid.toString()) && isInGroup;
|
isInGroup && !conversation.hasMember(ourUuid.toString());
|
||||||
|
|
||||||
// Ensure that all generated messages are ordered properly.
|
// Ensure that all generated messages are ordered properly.
|
||||||
// Before the provided timestamp so update messages appear before the
|
// Before the provided timestamp so update messages appear before the
|
||||||
|
Reference in New Issue
Block a user