forked from shadowfacts/Tusker
Fix Send Message action not setting visibility to direct
This commit is contained in:
parent
8473f32781
commit
916c6fba0d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue