From 0b6f9c62a179c3937ebbfdcb334ae0cf1e82f314 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Sat, 18 Aug 2018 13:41:23 +0300 Subject: [PATCH] fix --- src/modules/statuses.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/statuses.js b/src/modules/statuses.js index da7a72dc..45dd3afa 100644 --- a/src/modules/statuses.js +++ b/src/modules/statuses.js @@ -270,8 +270,8 @@ const addNewNotifications = (state, { dispatch, notifications, older }) => { const allStatuses = state.allStatuses const allStatusesObject = state.allStatusesObject each(notifications, (notification) => { - const action = notification.notice - mergeOrAdd(allStatuses, allStatusesObject, action) + const result = mergeOrAdd(allStatuses, allStatusesObject, notification.notice) + const action = result.item // Only add a new notification if we don't have one for the same action if (!find(state.notifications.data, (oldNotification) => oldNotification.action.id === action.id)) { state.notifications.maxId = Math.max(notification.id, state.notifications.maxId)