about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2019-02-25 01:10:56 +0100
committerGitHub <noreply@github.com>2019-02-25 01:10:56 +0100
commit3a44827d3f69fedb9a41f9c8fb3b763deec6f723 (patch)
tree3d3372be8ca812158080ea55b0aedd3457048acb /app
parent1dbf993bce5627e2c3fcab6e9c63b5279dff018a (diff)
Fix web UI not removing notifications after block (#10108)
Regression from #7311
Diffstat (limited to 'app')
-rw-r--r--app/javascript/mastodon/reducers/notifications.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/javascript/mastodon/reducers/notifications.js b/app/javascript/mastodon/reducers/notifications.js
index 19a02f5b1..c891f4a52 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: