Browse Source

keep keyboard open after cancelling drafts and quotes

cyberta 4 years ago
parent
commit
6feeee7523
1 changed files with 2 additions and 0 deletions
  1. 2 0
      deltachat-ios/Chat/ChatViewController.swift

+ 2 - 0
deltachat-ios/Chat/ChatViewController.swift

@@ -1558,11 +1558,13 @@ extension ChatViewController: InputBarAccessoryViewDelegate {
 // MARK: - DraftPreviewDelegate
 extension ChatViewController: DraftPreviewDelegate {
     func onCancelQuote() {
+        keepKeyboard = true
         draft.setQuote(quotedMsg: nil)
         configureDraftArea(draft: draft)
     }
 
     func onCancelAttachment() {
+        keepKeyboard = true
         draft.setAttachment(viewType: nil, path: nil, mimetype: nil)
         configureDraftArea(draft: draft)
         evaluateInputBar(draft: draft)