Browse Source

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

Regression from #7311
pull/4/head
Eugen Rochko 5 years ago
committed by GitHub
parent
commit
3a44827d3f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      app/javascript/mastodon/reducers/notifications.js

+ 1
- 0
app/javascript/mastodon/reducers/notifications.js View 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:

Loading…
Cancel
Save