fix: add missing notification event type

pull/2714/head
2m411H 2024-03-29 10:12:40 +08:00
rodzic 1b189043e4
commit f6a8a1f225
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -34,10 +34,10 @@ export function usePaginator<T, P, U = T>(
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)