From e8f7491003de352bb265b0046c6e1a06a4dff21e Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Thu, 16 Aug 2018 13:20:29 +0300 Subject: [PATCH] fixed favoriting from notification column --- src/modules/statuses.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/modules/statuses.js b/src/modules/statuses.js index bd6b968f..da7a72dc 100644 --- a/src/modules/statuses.js +++ b/src/modules/statuses.js @@ -268,8 +268,10 @@ const addNewStatuses = (state, { statuses, showImmediately = false, timeline, us 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) // 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)