Pinafore-Web-Client-Frontend/src/routes/_actions/mention.js

9 lines
357 B
JavaScript
Raw Normal View History

import { importShowComposeDialog } from '../_components/dialog/asyncDialogs/importShowComposeDialog.js'
import { store } from '../_store/store.js'
export async function composeNewStatusMentioning (account) {
store.setComposeData('dialog', { text: `@${account.acct} ` })
2019-08-03 22:49:37 +02:00
const showComposeDialog = await importShowComposeDialog()
showComposeDialog()
}