Skip to content

Commit

Permalink
Fix web UI not removing notifications after block (mastodon#10108)
Browse files Browse the repository at this point in the history
Regression from mastodon#7311
  • Loading branch information
Gargron authored and hiyuki2578 committed Oct 2, 2019
1 parent 63d81c0 commit dd84b5d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/javascript/mastodon/reducers/notifications.js
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit dd84b5d

Please sign in to comment.