mirror of
https://github.com/elk-zone/elk.git
synced 2024-11-22 09:25:24 +03:00
fix: do not overwrite status drafts (#1822)
This commit is contained in:
parent
8c783204d3
commit
d810b2de3a
1 changed files with 2 additions and 2 deletions
|
@ -129,14 +129,14 @@ export function useDraft(
|
||||||
export function mentionUser(account: mastodon.v1.Account) {
|
export function mentionUser(account: mastodon.v1.Account) {
|
||||||
openPublishDialog('dialog', getDefaultDraft({
|
openPublishDialog('dialog', getDefaultDraft({
|
||||||
status: `@${account.acct} `,
|
status: `@${account.acct} `,
|
||||||
}), true)
|
}))
|
||||||
}
|
}
|
||||||
|
|
||||||
export function directMessageUser(account: mastodon.v1.Account) {
|
export function directMessageUser(account: mastodon.v1.Account) {
|
||||||
openPublishDialog('dialog', getDefaultDraft({
|
openPublishDialog('dialog', getDefaultDraft({
|
||||||
status: `@${account.acct} `,
|
status: `@${account.acct} `,
|
||||||
visibility: 'direct',
|
visibility: 'direct',
|
||||||
}), true)
|
}))
|
||||||
}
|
}
|
||||||
|
|
||||||
export function clearEmptyDrafts() {
|
export function clearEmptyDrafts() {
|
||||||
|
|
Loading…
Reference in a new issue