remove: dependency invalidate, message update should be enough?

This commit is contained in:
Darshan
2025-02-22 13:26:54 +05:30
parent db54f46904
commit 92fb862d3a
@@ -1,7 +1,5 @@
import { sdk } from '$lib/stores/sdk';
import { type Models } from '@appwrite.io/console';
import { invalidate } from '$app/navigation';
import { Dependencies } from '$lib/constants';
/** Stores active polling intervals for messages. */
const messageIntervals = new Map<string, ReturnType<typeof setInterval>>();
@@ -14,8 +12,6 @@ function checkMessageStatus(message: Models.Message) {
if (msg.status !== 'processing') {
clearPolling(message.$id);
message.status = msg.status;
// noinspection JSIgnoredPromiseFromCall
invalidate(Dependencies.MESSAGING_MESSAGES);
}
})
.catch(() => clearPolling(message.$id));