チャットリンクの挙動を改善

This commit is contained in:
syuilo
2020-11-03 10:43:50 +09:00
parent 1852d1cc6f
commit 582768a5e4
3 changed files with 20 additions and 24 deletions

View File

@@ -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'),