diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2017-10-03 02:01:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-03 02:01:54 +0200 |
commit | 0f699a4280e63b23d86c901a376c8a9e661ebc29 (patch) | |
tree | 1810651b1213d9d2e7d839e7948fd1241f92bd83 /app/javascript/mastodon/reducers/notifications.js | |
parent | 5e5f36c21668ded94868c8b1b155cb478a1dfed1 (diff) |
When muting, clear web UI like for blocks (#5172)
* When muting, clear web UI like for blocks * Fix style issue
Diffstat (limited to 'app/javascript/mastodon/reducers/notifications.js')
-rw-r--r-- | app/javascript/mastodon/reducers/notifications.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/javascript/mastodon/reducers/notifications.js b/app/javascript/mastodon/reducers/notifications.js index 0063d24e4..cccf00a1f 100644 --- a/app/javascript/mastodon/reducers/notifications.js +++ b/app/javascript/mastodon/reducers/notifications.js @@ -9,7 +9,10 @@ import { NOTIFICATIONS_CLEAR, NOTIFICATIONS_SCROLL_TOP, } from '../actions/notifications'; -import { ACCOUNT_BLOCK_SUCCESS } from '../actions/accounts'; +import { + ACCOUNT_BLOCK_SUCCESS, + ACCOUNT_MUTE_SUCCESS, +} from '../actions/accounts'; import { TIMELINE_DELETE } from '../actions/timelines'; import { Map as ImmutableMap, List as ImmutableList } from 'immutable'; @@ -108,6 +111,7 @@ export default function notifications(state = initialState, action) { case NOTIFICATIONS_EXPAND_SUCCESS: return appendNormalizedNotifications(state, action.notifications, action.next); case ACCOUNT_BLOCK_SUCCESS: + case ACCOUNT_MUTE_SUCCESS: return filterNotifications(state, action.relationship); case NOTIFICATIONS_CLEAR: return state.set('items', ImmutableList()).set('next', null); |