From 3a44827d3f69fedb9a41f9c8fb3b763deec6f723 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Mon, 25 Feb 2019 01:10:56 +0100 Subject: [PATCH] Fix web UI not removing notifications after block (#10108) Regression from #7311 --- app/javascript/mastodon/reducers/notifications.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app/javascript/mastodon/reducers/notifications.js b/app/javascript/mastodon/reducers/notifications.js index 19a02f5b15..c891f4a522 100644 --- a/app/javascript/mastodon/reducers/notifications.js +++ b/app/javascript/mastodon/reducers/notifications.js @@ -108,6 +108,7 @@ export default function notifications(state = initialState, action) { case NOTIFICATIONS_EXPAND_SUCCESS: return expandNormalizedNotifications(state, action.notifications, action.next); case ACCOUNT_BLOCK_SUCCESS: + return filterNotifications(state, action.relationship); case ACCOUNT_MUTE_SUCCESS: return action.relationship.muting_notifications ? filterNotifications(state, action.relationship) : state; case NOTIFICATIONS_CLEAR: