@@ -314,6 +317,7 @@ provide('react', (reaction: string) => {
const tab = ref(props.initialTab);
const reactionTabType = ref
(null);
+const reactionTabTypeTrimLocal = computed(() => reactionTabType.value?.replace('@.', '') ?? null);
const renotesPagination = computed(() => ({
endpoint: 'notes/renotes',
@@ -484,12 +488,14 @@ async function clip() {
os.popupMenu(await getNoteClipMenu({ note: note.value, isDeleted }), clipButton.value).then(focus);
}
-async function reactionMuteToggle(emojiName: string) {
- if (!mutedReactions.value.includes(emojiName)) {
- mutedReactions.value.push(emojiName);
+async function reactionMuteToggle(reactionName: string | null) {
+ if (reactionName == null) return;
+
+ if (!mutedReactions.value.includes(reactionName)) {
+ mutedReactions.value.push(reactionName);
defaultStore.set('mutedReactions', mutedReactions.value);
} else {
- mutedReactions.value = mutedReactions.value.filter(x => x !== emojiName);
+ mutedReactions.value = mutedReactions.value.filter(x => x !== reactionName);
defaultStore.set('mutedReactions', mutedReactions.value);
}
}
diff --git a/packages/frontend/src/pages/settings/mute-block.vue b/packages/frontend/src/pages/settings/mute-block.vue
index 2445a14d5..855e9594b 100644
--- a/packages/frontend/src/pages/settings/mute-block.vue
+++ b/packages/frontend/src/pages/settings/mute-block.vue
@@ -197,7 +197,6 @@ function remove(itemsRef: Ref, reaction: string, ev: MouseEvent) {
async function pickEmoji(itemsRef: Ref, ev: MouseEvent) {
os.pickEmoji(ev.currentTarget ?? ev.target, {
showPinned: false,
- manualReactionInput: true,
}).then(it => {
const emoji = it;
if (!itemsRef.value.includes(emoji)) {