Fix Send Message action not setting visibility to direct

This commit is contained in:
Shadowfacts 2022-04-02 11:39:13 -04:00
parent 8473f32781
commit 916c6fba0d
1 changed files with 3 additions and 1 deletions

View File

@ -51,7 +51,9 @@ extension MenuPreviewProvider {
let actionsSection: [UIMenuElement] = [
createAction(identifier: "sendmessage", title: "Send Message", systemImageName: "envelope", handler: { [weak self] (_) in
guard let self = self else { return }
self.navigationDelegate?.compose(mentioningAcct: account.acct)
let draft = self.mastodonController!.createDraft(mentioningAcct: account.acct)
draft.visibility = .direct
self.navigationDelegate?.compose(editing: draft)
}),
UIDeferredMenuElement({ (elementHandler) in
Task { @MainActor in