From 82d962a54bbced3d52437fc6dd7af3ad2882dd09 Mon Sep 17 00:00:00 2001 From: Sma11X <540351143@qq.com> Date: Fri, 29 Mar 2024 23:31:53 +0800 Subject: [PATCH] fix: add missing notification event type (#2714) --- composables/paginator.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/composables/paginator.ts b/composables/paginator.ts index 49884f23..7d37d080 100644 --- a/composables/paginator.ts +++ b/composables/paginator.ts @@ -34,10 +34,10 @@ export function usePaginator( return for await (const entry of stream) { - if (entry.event === 'update') { + if (entry.event === 'update' || entry.event === 'notification') { const status = entry.payload - if ('uri' in entry) + if ('uri' in status) cacheStatus(status, undefined, true) const index = prevItems.value.findIndex((i: any) => i.id === status.id)