fix: subscribe to proper user.notification stream (#2566)
This commit is contained in:
parent
b8e8693342
commit
7322711609
4 changed files with 2 additions and 6 deletions
|
@ -10,7 +10,6 @@ const {
|
|||
stream,
|
||||
keyProp = 'id',
|
||||
virtualScroller = false,
|
||||
eventType = 'update',
|
||||
preprocess,
|
||||
endMessage = true,
|
||||
} = defineProps<{
|
||||
|
@ -18,7 +17,6 @@ const {
|
|||
keyProp?: keyof T
|
||||
virtualScroller?: boolean
|
||||
stream?: mastodon.streaming.Subscription
|
||||
eventType?: 'notification' | 'update'
|
||||
preprocess?: (items: (U | T)[]) => U[]
|
||||
endMessage?: boolean | string
|
||||
}>()
|
||||
|
@ -46,7 +44,7 @@ defineSlots<{
|
|||
const { t } = useI18n()
|
||||
const nuxtApp = useNuxtApp()
|
||||
|
||||
const { items, prevItems, update, state, endAnchor, error } = usePaginator(paginator, $$(stream), eventType, preprocess)
|
||||
const { items, prevItems, update, state, endAnchor, error } = usePaginator(paginator, $$(stream), preprocess)
|
||||
|
||||
nuxtApp.hook('elk-logo:click', () => {
|
||||
update()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue