enhance(frontend): リモートアカウントでチャットが使えるかどうか知る術がないため表示を改善

This commit is contained in:
syuilo 2025-03-28 11:00:45 +09:00
parent c37f9d38a3
commit 1c26dae39f
2 changed files with 2 additions and 2 deletions

View file

@ -42,7 +42,7 @@ SPDX-License-Identifier: AGPL-3.0-only
</TransitionGroup> </TransitionGroup>
</div> </div>
<div v-if="user && !user.canChat"> <div v-if="user && (!user.canChat || user.host !== null)">
<MkInfo warn>{{ i18n.ts._chat.chatNotAvailableInOtherAccount }}</MkInfo> <MkInfo warn>{{ i18n.ts._chat.chatNotAvailableInOtherAccount }}</MkInfo>
</div> </div>

View file

@ -364,7 +364,7 @@ export function getUserMenu(user: Misskey.entities.UserDetailed, router: Router
}, },
}); });
if ($i.policies.canChat && user.canChat) { if ($i.policies.canChat && user.canChat && user.host == null) {
menuItems.push({ menuItems.push({
type: 'link', type: 'link',
icon: 'ti ti-messages', icon: 'ti ti-messages',