diff --git a/Tusker/Screens/Utilities/Previewing.swift b/Tusker/Screens/Utilities/Previewing.swift index d60e57234a..97ad33c708 100644 --- a/Tusker/Screens/Utilities/Previewing.swift +++ b/Tusker/Screens/Utilities/Previewing.swift @@ -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