diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2019-02-25 01:10:56 +0100 |
---|---|---|
committer | Thibaut Girka <thib@sitedethib.com> | 2019-02-26 19:33:59 +0100 |
commit | 1e06ca1c0af98cf61b1114b93249fb447e795edb (patch) | |
tree | 75adb7dc4d3c37ecf87b43659538e20ec198d804 /app/javascript/flavours/glitch/reducers | |
parent | 7209a8b32f334726c0b0a78724152740ba0031be (diff) |
Fix web UI not removing notifications after block (#10108)
Regression from #7311
Diffstat (limited to 'app/javascript/flavours/glitch/reducers')
-rw-r--r-- | app/javascript/flavours/glitch/reducers/notifications.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/javascript/flavours/glitch/reducers/notifications.js b/app/javascript/flavours/glitch/reducers/notifications.js index c44674a80..04ae3d406 100644 --- a/app/javascript/flavours/glitch/reducers/notifications.js +++ b/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: |