]> cat aescling's git repositories - mastodon.git/commitdiff
Fix web UI not removing notifications after block (#10108)
authorEugen Rochko <eugen@zeonfederated.com>
Mon, 25 Feb 2019 00:10:56 +0000 (01:10 +0100)
committerGitHub <noreply@github.com>
Mon, 25 Feb 2019 00:10:56 +0000 (01:10 +0100)
Regression from #7311

app/javascript/mastodon/reducers/notifications.js

index 19a02f5b1546bde84e802d8ab854f5f3f2295a03..c891f4a522dbec557e73d24fb2f09aab6db9a368 100644 (file)
@@ -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: