diff --git a/package.json b/package.json index b42e7670cb..ffa05a0a1f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "calckey", - "version": "12.119.0-calc.13-rc.1", + "version": "12.119.0-calc.13-rc.2", "codename": "aqua", "repository": { "type": "git", diff --git a/packages/client/src/pages/messaging/index.vue b/packages/client/src/pages/messaging/index.vue index dccd9715e2..fd0c022259 100644 --- a/packages/client/src/pages/messaging/index.vue +++ b/packages/client/src/pages/messaging/index.vue @@ -64,7 +64,12 @@ const tabs = ['dms', 'groups']; let tab = $ref(tabs[0]); watch($$(tab), () => (syncSlide(tabs.indexOf(tab)))); -const headerActions = $computed(() => []); +const headerActions = $computed(() => [{ + asFullButton: true, + icon: 'ph-plus-bold ph-lg', + text: i18n.ts.addUser, + handler: startMenu, +}]); const headerTabs = $computed(() => [{ key: 'dms', @@ -122,6 +127,19 @@ function onRead(ids): void { } } +function startMenu(ev) { + os.popupMenu([{ + text: i18n.ts.messagingWithUser, + icon: 'fas fa-user', + action: () => { startUser(); }, + }, { + text: i18n.ts.messagingWithGroup, + icon: 'fas fa-users', + action: () => { startGroup(); }, + }], ev.currentTarget ?? ev.target); +} + + async function startUser(): void { os.selectUser().then(user => { router.push(`/my/messaging/${Acct.toString(user)}`);