Hack to fix streaming notification order

This commit is contained in:
Essem 2024-02-11 23:18:23 -06:00
parent 672f50eec1
commit da8063b54b
No known key found for this signature in database
GPG key ID: 7D497397CC3A2A8C

View file

@ -349,6 +349,7 @@ const addNewNotifications = (state, { dispatch, notifications, older, visibleNot
// Only add a new notification if we don't have one for the same action // Only add a new notification if we don't have one for the same action
if (!state.notifications.idStore.hasOwnProperty(notification.id)) { if (!state.notifications.idStore.hasOwnProperty(notification.id)) {
updateNotificationsMinMaxId(state, notification) updateNotificationsMinMaxId(state, notification)
notification.seen = false
state.notifications.data.push(notification) state.notifications.data.push(notification)
state.notifications.idStore[notification.id] = notification state.notifications.idStore[notification.id] = notification