Group Migration: Don't bump to top of list if we're not in group
This commit is contained in:
parent
cfa0711909
commit
1656b61a82
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue