Fixes message clustering when there is an edit between
This commit is contained in:
parent
45b4a7da56
commit
2930aa002a
1 changed files with 2 additions and 1 deletions
|
@ -125,7 +125,8 @@ export function areMessagesInSameGroup(
|
||||||
return Boolean(
|
return Boolean(
|
||||||
!olderMessage.reactions?.length &&
|
!olderMessage.reactions?.length &&
|
||||||
olderMessage.author.id === newerMessage.author.id &&
|
olderMessage.author.id === newerMessage.author.id &&
|
||||||
newerMessage.timestamp >= olderMessage.timestamp &&
|
(olderMessage.isEditedMessage ||
|
||||||
|
newerMessage.timestamp >= olderMessage.timestamp) &&
|
||||||
newerMessage.timestamp - olderMessage.timestamp < COLLAPSE_WITHIN &&
|
newerMessage.timestamp - olderMessage.timestamp < COLLAPSE_WITHIN &&
|
||||||
isSameDay(olderMessage.timestamp, newerMessage.timestamp)
|
isSameDay(olderMessage.timestamp, newerMessage.timestamp)
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue