]> cat aescling's git repositories - mastodon.git/commitdiff
[Glitch] Update notifications.js
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:28:00 +0000 (00:28 -0400)
Port d92ce31c92903c3ce24c3fcadb99af3c1ba1d585 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
app/javascript/flavours/glitch/reducers/notifications.js

index f538af7fa5b93efe4fe909672984e3e80db358a6..1e61526b1bee11d8f7424dd9ec858240ee1b8398 100644 (file)
@@ -270,8 +270,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: