Skip to content

Commit

Permalink
1.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
mattyatea committed Dec 3, 2024
1 parent 86e61fa commit 096fd27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/frontend/src/scripts/filter-muted-notification.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export function filterMutedNotification(notification: Misskey.entities.Notificat
if (defaultStore.state.reactionAndServerMute && $i && $i.mutedInstances && !$i.mutedInstances.includes(notification.reaction.split('@')[1])) return true; // ローカルの絵文字には @. というsuffixがつくのでそれを消してから比較してあげる
break;
case 'reaction:grouped':
notification.reactions = notification.reactions.filter(reaction => !defaultStore.state.mutedReactions.includes(reaction.reaction.replace('@.', ''))).filter(reaction => !($i && $i.mutedInstances && !$i.mutedInstances.includes(reaction.reaction.split('@')[1])));
notification.reactions = notification.reactions.filter(reaction => !defaultStore.state.mutedReactions.includes(reaction.reaction.replace('@.', ''))).filter(reaction => !(defaultStore.state.reactionAndServerMute && $i && $i.mutedInstances && !$i.mutedInstances.includes(reaction.reaction.split('@')[1])));
if (notification.reactions.length === 0) return false;
break;
}
Expand Down

0 comments on commit 096fd27

Please sign in to comment.