diff --git a/packages/client/src/components/MkMenu.vue b/packages/client/src/components/MkMenu.vue
index 78c1ff2238..c071853771 100644
--- a/packages/client/src/components/MkMenu.vue
+++ b/packages/client/src/components/MkMenu.vue
@@ -26,7 +26,7 @@
{{ item.text }}
-
-
+
{{ item.text }}
diff --git a/packages/client/src/scripts/get-user-menu.ts b/packages/client/src/scripts/get-user-menu.ts
index 00a271c3c8..bca3b198a6 100644
--- a/packages/client/src/scripts/get-user-menu.ts
+++ b/packages/client/src/scripts/get-user-menu.ts
@@ -128,7 +128,7 @@ export function getUserMenu(user, router: Router = mainRouter) {
await os.apiWithDialog(user.isBlocking ? "blocking/delete" : "blocking/create", {
userId: user.id,
})
- user.isBlocking = !user.isBlocking;
+ user.isBlocking = !user.isBlocking;
await os.api(user.isBlocking ? "mute/create" : "mute/delete", {
userId: user.id,
})
@@ -136,7 +136,7 @@ export function getUserMenu(user, router: Router = mainRouter) {
if (user.isBlocking) {
await os.api('following/delete', {
userId: user.id,
- });
+ });
user.isFollowing = false
}
}
@@ -261,6 +261,7 @@ export function getUserMenu(user, router: Router = mainRouter) {
{
icon: user.isMuted ? "ph-eye-bold ph-lg" : "ph-eye-slash-bold ph-lg",
text: user.isMuted ? i18n.ts.unmute : i18n.ts.mute,
+ hidden: user.isBlocking === true,
action: toggleMute,
},
{
diff --git a/packages/client/src/types/menu.ts b/packages/client/src/types/menu.ts
index 6a4345ea71..e1bfc20a33 100644
--- a/packages/client/src/types/menu.ts
+++ b/packages/client/src/types/menu.ts
@@ -28,6 +28,7 @@ export type MenuUser = {
user: Misskey.entities.User;
active?: boolean;
indicate?: boolean;
+ hidden?: boolean;
action: MenuAction;
};
export type MenuSwitch = {
@@ -43,6 +44,7 @@ export type MenuButton = {
indicate?: boolean;
danger?: boolean;
active?: boolean;
+ hidden?: boolean;
avatar?: Misskey.entities.User;
action: MenuAction;
};