diff options
| author | Shpuld Shpludson <shp@cock.li> | 2020-01-14 13:28:57 +0000 |
|---|---|---|
| committer | Shpuld Shpludson <shp@cock.li> | 2020-01-14 13:28:57 +0000 |
| commit | ac90d4c5329c513d73871b3a2476761672453775 (patch) | |
| tree | ffad0a49edddb82bd765dc2ef217d68a253def89 /src/services/notification_utils/notification_utils.js | |
| parent | dd740043c658f312b6331a6b715592c9d50c50e7 (diff) | |
| parent | 86380f042976557d5260a3f5c2de0a9b0bcdbac6 (diff) | |
Merge branch 'feat/optimize-amount-of-notifs-to-render' into 'develop'
Optimize Notifications Rendering
See merge request pleroma/pleroma-fe!1041
Diffstat (limited to 'src/services/notification_utils/notification_utils.js')
| -rw-r--r-- | src/services/notification_utils/notification_utils.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/services/notification_utils/notification_utils.js b/src/services/notification_utils/notification_utils.js index b08514da..860620fc 100644 --- a/src/services/notification_utils/notification_utils.js +++ b/src/services/notification_utils/notification_utils.js @@ -26,7 +26,7 @@ const sortById = (a, b) => { } } -export const visibleNotificationsFromStore = (store, types) => { +export const filteredNotificationsFromStore = (store, types) => { // map is just to clone the array since sort mutates it and it causes some issues let sortedNotifications = notificationsFromStore(store).map(_ => _).sort(sortById) sortedNotifications = sortBy(sortedNotifications, 'seen') @@ -36,4 +36,4 @@ export const visibleNotificationsFromStore = (store, types) => { } export const unseenNotificationsFromStore = store => - filter(visibleNotificationsFromStore(store), ({ seen }) => !seen) + filter(filteredNotificationsFromStore(store), ({ seen }) => !seen) |
