This commit is contained in:
cutestnekoaqua 2023-01-19 18:16:09 +01:00
parent 03234acb8f
commit 66448b5e52
No known key found for this signature in database
GPG key ID: 6BF0964A5069C1E0

View file

@ -62,7 +62,6 @@ import 'swiper/scss/virtual';
const router = useRouter();
let messages = $ref([]);
let groupMessages = $ref([]);
let connection = $ref(null);
let paginationComponentUser = $ref<InstanceType<typeof MkPagination>>();
let paginationComponentGroup = $ref<InstanceType<typeof MkPagination>>();
@ -118,9 +117,10 @@ function onMessage(message): void {
messages.unshift(message);
} else if (message.groupId) {
groupMessages = groupMessages.filter(m => m.groupId !== message.groupId);
groupMessages.unshift(message);
messages = messages.filter(m => m.groupId !== message.groupId);
messages.unshift(message);
}
forceRerender();
}
function onRead(ids): void {