Fix the notifications polling when all the latest notifications are unread
1 unresolved thread
Closes #896 (closed)
Merge request reports
Activity
added 1 commit
- e1ed6e49 - Fix the notifications polling when all the latest notifications are unread
mentioned in issue #896 (closed)
36 36 const readNotifsIds = notifications.filter(n => n.seen).map(n => n.id) 37 37 const numUnseenNotifs = notifications.length - readNotifsIds.length 38 38 if (numUnseenNotifs > 0) { 39 args['since'] = Math.max(...readNotifsIds) 39 const latestNotifications = readNotifsIds.length === 0 ? notifications : readNotifsIds 40 if (latestNotifications.length > 0) { 41 args['since'] = Math.max(...latestNotifications) 42 } changed this line in version 3 of the diff
added 1 commit
- 5b9d22e2 - Fix the notifications polling when all the latest notifications are unread
mentioned in commit 92377bea
Please register or sign in to reply