wip
This commit is contained in:
parent
03234acb8f
commit
66448b5e52
1 changed files with 3 additions and 3 deletions
|
@ -62,7 +62,6 @@ import 'swiper/scss/virtual';
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
|
|
||||||
let messages = $ref([]);
|
let messages = $ref([]);
|
||||||
let groupMessages = $ref([]);
|
|
||||||
let connection = $ref(null);
|
let connection = $ref(null);
|
||||||
let paginationComponentUser = $ref<InstanceType<typeof MkPagination>>();
|
let paginationComponentUser = $ref<InstanceType<typeof MkPagination>>();
|
||||||
let paginationComponentGroup = $ref<InstanceType<typeof MkPagination>>();
|
let paginationComponentGroup = $ref<InstanceType<typeof MkPagination>>();
|
||||||
|
@ -118,9 +117,10 @@ function onMessage(message): void {
|
||||||
|
|
||||||
messages.unshift(message);
|
messages.unshift(message);
|
||||||
} else if (message.groupId) {
|
} else if (message.groupId) {
|
||||||
groupMessages = groupMessages.filter(m => m.groupId !== message.groupId);
|
messages = messages.filter(m => m.groupId !== message.groupId);
|
||||||
groupMessages.unshift(message);
|
messages.unshift(message);
|
||||||
}
|
}
|
||||||
|
forceRerender();
|
||||||
}
|
}
|
||||||
|
|
||||||
function onRead(ids): void {
|
function onRead(ids): void {
|
||||||
|
|
Loading…
Reference in a new issue