fix: subscribe to proper user.notification stream (#2566)

This commit is contained in:
patak 2024-01-21 09:52:52 +01:00 committed by GitHub
parent b8e8693342
commit 7322711609
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 2 additions and 6 deletions

View file

@ -9,7 +9,7 @@ const options = { limit: 30, types: filter ? [filter] : [] }
// Default limit is 20 notifications, and servers are normally caped to 30
const paginator = useMastoClient().v1.notifications.list(options)
const stream = useStreaming(client => client.user.subscribe())
const stream = useStreaming(client => client.user.notification.subscribe())
const { clearNotifications } = useNotifications()
onActivated(clearNotifications)