fix(frontend): ユーザーメニューで「チャットを開始」をクリックすると、間違ったページが呼び出される

This commit is contained in:
NoriDev 2023-09-23 20:12:33 +09:00
parent 90cdf56e3d
commit 505606bb2c
2 changed files with 3 additions and 2 deletions

View file

@ -84,6 +84,7 @@
- Fix: 모달 팝업이 safe area를 침범하지 않도록
- Fix: OffscreenCanvas undefined (MisskeyIO/misskey#165)
- Fix: 대화 삭제가 올바르게 작동하지 않음
- Fix: 유저 메뉴에서 '대화 시작하기'를 클릭하면 잘못된 페이지가 호출됨
### Server
- Nodeinfo의 Software 이름을 CherryPick이 아닌 다른 이름으로 변경할 때 관련 주석 추가

View file

@ -16,7 +16,7 @@ import { mainRouter } from '@/router.js';
import { Router } from '@/nirax.js';
import { antennasCache, rolesCache, userListsCache } from '@/cache.js';
import { editNickname } from '@/scripts/edit-nickname.js';
import { globalEvents } from '@/events';
import { globalEvents } from '@/events.js';
export function getUserMenu(user: Misskey.entities.UserDetailed, router: Router = mainRouter) {
const meId = $i ? $i.id : null;
@ -205,7 +205,7 @@ export function getUserMenu(user: Misskey.entities.UserDetailed, router: Router
type: 'link',
icon: 'ti ti-messages',
text: i18n.ts.startMessaging,
to: '/my/messaging/${user.id}',
to: `/my/messaging/@${user.host === null ? user.username : user.username + '@' + user.host}`,
} : undefined, meId !== user.id ? {
icon: 'ti ti-users',
text: i18n.ts.inviteToGroup,