add時の判定ミスを修正

This commit is contained in:
tai-cha 2025-05-12 09:04:38 +09:00
parent 442742c371
commit 3e71a5ba8c
No known key found for this signature in database
GPG Key ID: 1D5EE39F870DC283
1 changed files with 2 additions and 2 deletions

View File

@ -37,10 +37,10 @@ export async function mute(emoji: string) {
makeEmojiMuteKey({ name: extractCustomEmojiName(emoji), host: extractCustomEmojiHost(emoji) }) :
emoji;
const mutedEmojis = prefer.s.mutingEmojis;
if (!mutedEmojis.includes(emoji)) {
if (!mutedEmojis.includes(emojiMuteKey)) {
return prefer.commit('mutingEmojis', [...mutedEmojis, emojiMuteKey]);
}
throw new Error('Emoji is already muted');
throw new Error('Emoji is already muted', { cause: `${emojiMuteKey} is Already Muted` });
}
export async function unmute(emoji:string) {