Open clownishthorn opened 4 months ago
Unread notifications count doesn't update on events
Unread notifications count should increment by 1 with each notification
No response
php flarum info
https://github.com/flarum/framework/blob/1.x/extensions/pusher/js/src/forum/index.tsx#L152C12-L153C84
Replace in those 2 lines: app.session.user.unreadNotificationCount() ?? 0 + 1 to (app.session.user.unreadNotificationCount() ?? 0) + 1 app.session.user.newNotificationCount() ?? 0 + 1 to (app.session.user.newNotificationCount() ?? 0) + 1
Current Behavior
Unread notifications count doesn't update on events
Steps to Reproduce
Expected Behavior
Unread notifications count should increment by 1 with each notification
Screenshots
No response
Environment
Output of
php flarum info
No response
Possible Solution
https://github.com/flarum/framework/blob/1.x/extensions/pusher/js/src/forum/index.tsx#L152C12-L153C84
Replace in those 2 lines: app.session.user.unreadNotificationCount() ?? 0 + 1 to (app.session.user.unreadNotificationCount() ?? 0) + 1 app.session.user.newNotificationCount() ?? 0 + 1 to (app.session.user.newNotificationCount() ?? 0) + 1
Additional Context
No response