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 {