File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed
state/queries/notifications Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -386,7 +386,7 @@ export function getNotificationPayload(
386
386
return payload
387
387
} else {
388
388
if ( payload ) {
389
- notyLogger . warn ( 'getNotificationPayload: received unknown payload' , {
389
+ notyLogger . debug ( 'getNotificationPayload: received unknown payload' , {
390
390
payload,
391
391
identifier : e . request . identifier ,
392
392
} )
Original file line number Diff line number Diff line change @@ -9,10 +9,9 @@ import EventEmitter from 'eventemitter3'
9
9
10
10
import BroadcastChannel from '#/lib/broadcast'
11
11
import { resetBadgeCount } from '#/lib/notifications/notifications'
12
- import { logger } from '#/logger'
12
+ import { useModerationOpts } from '#/state/preferences/moderation-opts'
13
+ import { truncateAndInvalidate } from '#/state/queries/util'
13
14
import { useAgent , useSession } from '#/state/session'
14
- import { useModerationOpts } from '../../preferences/moderation-opts'
15
- import { truncateAndInvalidate } from '../util'
16
15
import { RQKEY as RQKEY_NOTIFS } from './feed'
17
16
import { type CachedFeedPage , type FeedPage } from './types'
18
17
import { fetchPage } from './util'
@@ -189,8 +188,6 @@ export function Provider({children}: React.PropsWithChildren<{}>) {
189
188
truncateAndInvalidate ( queryClient , RQKEY_NOTIFS ( 'mentions' ) )
190
189
}
191
190
broadcast . postMessage ( { event : unreadCountStr } )
192
- } catch ( e ) {
193
- logger . warn ( 'Failed to check unread notifications' , { error : e } )
194
191
} finally {
195
192
isFetchingRef . current = false
196
193
}
You can’t perform that action at this time.
0 commit comments