From 7714478818334c7854370d52d20dbba512a7aff0 Mon Sep 17 00:00:00 2001 From: Plastikmensch Date: Thu, 13 Jul 2023 21:36:15 +0200 Subject: [PATCH] Fix notifications not loading when slow mode active (#2292) When slow mode is enabled, clicking a notification filter when a new notification was received will render an empty column. This change has been missed in f1de5093fb705a75d71955b8f87a82e557efbdb7 Signed-off-by: Plastikmensch --- app/javascript/flavours/glitch/reducers/notifications.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/javascript/flavours/glitch/reducers/notifications.js b/app/javascript/flavours/glitch/reducers/notifications.js index f78fd8eb14..9a4b75dce1 100644 --- a/app/javascript/flavours/glitch/reducers/notifications.js +++ b/app/javascript/flavours/glitch/reducers/notifications.js @@ -313,7 +313,7 @@ export default function notifications(state = initialState, action) { case NOTIFICATIONS_EXPAND_FAIL: return state.update('isLoading', (nbLoading) => nbLoading - 1); case NOTIFICATIONS_FILTER_SET: - return state.set('items', ImmutableList()).set('hasMore', true); + return state.set('items', ImmutableList()).set('pendingItems', ImmutableList()).set('hasMore', true); case NOTIFICATIONS_SCROLL_TOP: return updateTop(state, action.top); case NOTIFICATIONS_UPDATE: