pinafore/src/routes/_actions/mention.js
Nolan Lawson 45d70e8e6b
feat: add more keyboard shortcuts (#904)
* feat: add more keyboard shortcuts

largely fixes #895

* oops wrong test name
2019-01-19 16:40:31 -08:00

9 lines
325 B
JavaScript

import { importShowComposeDialog } from '../_components/dialog/asyncDialogs'
import { store } from '../_store/store'
export async function composeNewStatusMentioning (account) {
store.setComposeData('dialog', { text: `@${account.acct} ` })
let showComposeDialog = await importShowComposeDialog()
showComposeDialog()
}