fix message clumping

This commit is contained in:
hippoz 2022-09-06 22:03:41 +03:00
parent 19fb448d2a
commit 802178ca67
Signed by: hippoz
GPG key ID: 7C52899193467641

View file

@ -159,7 +159,7 @@ class MessageStore extends Store {
if (userInfoStore.value && (message.author_id === userInfoStore.value.id || userInfoStore.value.is_superuser)) { if (userInfoStore.value && (message.author_id === userInfoStore.value.id || userInfoStore.value.is_superuser)) {
message._editable = true; message._editable = true;
} }
if (previous && (message._createdAtDate.getTime() - previous._createdAtDate.getTime()) <= 100 * 1000) { if (previous && (message._createdAtDate.getTime() - previous._createdAtDate.getTime()) <= 100 * 1000 && message.author_id === previous.author_id) {
message._clumped = true; message._clumped = true;
} }
if (previous && (previous._createdAtDateString !== message._createdAtDateString)) { if (previous && (previous._createdAtDateString !== message._createdAtDateString)) {