diff options
Diffstat (limited to 'src/client/scripts')
| -rw-r--r-- | src/client/scripts/get-user-menu.ts | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/client/scripts/get-user-menu.ts b/src/client/scripts/get-user-menu.ts index 72ae9c1e7b..693e573b07 100644 --- a/src/client/scripts/get-user-menu.ts +++ b/src/client/scripts/get-user-menu.ts @@ -131,16 +131,10 @@ export function getUserMenu(user) { os.post({ specified: user }); } }, store.state.i.id != user.id ? { + type: 'link', icon: faComments, text: i18n.global.t('startMessaging'), - action: () => { - const acct = getAcct(user); - switch (store.state.device.chatOpenBehavior) { - case 'window': { os.pageWindow('/my/messaging/' + acct); break; } - case 'popout': { popout('/my/messaging'); break; } - default: { router.push('/my/messaging'); break; } - } - } + to: '/my/messaging/' + getAcct(user), } : undefined, null, { icon: faListUl, text: i18n.global.t('addToList'), |