Skip to content
Snippets Groups Projects

Fix the notifications polling when all the latest notifications are unread

Merged Eugenij requested to merge eugenijm/pleroma-fe:fix-notification-polling into develop
1 unresolved thread

Closes #896 (closed)

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
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 }
  • Eugenij added 1 commit

    added 1 commit

    • 5b9d22e2 - Fix the notifications polling when all the latest notifications are unread

    Compare with previous version

  • mentioned in commit 92377bea

  • Please register or sign in to reply
    Loading