From 1e0becd6fb9e39aca37836caf1ef5c157fc3077d Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Thu, 19 Jan 2023 16:29:23 -0800 Subject: [PATCH] Revert "wip" This reverts commit 66448b5e5201b8dec38dc0716ea34195a224a341. --- packages/client/src/pages/messaging/index.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/client/src/pages/messaging/index.vue b/packages/client/src/pages/messaging/index.vue index a614085f64..43f3c118a0 100644 --- a/packages/client/src/pages/messaging/index.vue +++ b/packages/client/src/pages/messaging/index.vue @@ -62,6 +62,7 @@ import 'swiper/scss/virtual'; const router = useRouter(); let messages = $ref([]); +let groupMessages = $ref([]); let connection = $ref(null); let paginationComponentUser = $ref>(); let paginationComponentGroup = $ref>(); @@ -117,10 +118,9 @@ function onMessage(message): void { messages.unshift(message); } else if (message.groupId) { - messages = messages.filter(m => m.groupId !== message.groupId); - messages.unshift(message); + groupMessages = groupMessages.filter(m => m.groupId !== message.groupId); + groupMessages.unshift(message); } - forceRerender(); } function onRead(ids): void {