Fix web UI not removing notifications after block (#10108)

Regression from #7311
master
Eugen Rochko 6 years ago committed by Thibaut Girka
parent 7209a8b32f
commit 1e06ca1c0a
  1. 1
      app/javascript/flavours/glitch/reducers/notifications.js

@ -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:

Loading…
Cancel
Save