]> cat aescling's git repositories - mastodon.git/commitdiff
Update notifications.js (#18977)
authorShlee <github@shl.ee>
Mon, 15 Aug 2022 18:33:05 +0000 (04:03 +0930)
committeraescling <aescling+gitlab@cat.family>
Mon, 5 Sep 2022 04:27:59 +0000 (00:27 -0400)
app/javascript/mastodon/reducers/notifications.js

index 4b460bc10cb176d6c5427c4ea274bb0ee4048313..4563118eaa3d112ccb4bed3d4be39d2ab66501f7 100644 (file)
@@ -234,8 +234,6 @@ export default function notifications(state = initialState, action) {
   case FOLLOW_REQUEST_AUTHORIZE_SUCCESS:
   case FOLLOW_REQUEST_REJECT_SUCCESS:
     return filterNotifications(state, [action.id], 'follow_request');
-  case ACCOUNT_MUTE_SUCCESS:
-    return action.relationship.muting_notifications ? filterNotifications(state, [action.relationship.id]) : state;
   case NOTIFICATIONS_CLEAR:
     return state.set('items', ImmutableList()).set('pendingItems', ImmutableList()).set('hasMore', false);
   case TIMELINE_DELETE: