]> 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)
committerThibaut Girka <thib@sitedethib.com>
Tue, 26 Feb 2019 18:33:59 +0000 (19:33 +0100)
Regression from #7311

app/javascript/flavours/glitch/reducers/notifications.js

index c44674a80d34fcac33fac38c285423be75f1f907..04ae3d406e28c26ee6d9e77432f5044b779d9d20 100644 (file)
@@ -207,6 +207,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: