Skip to content

Commit

Permalink
Fixed input field missing after adding a reaction (#2343)
Browse files Browse the repository at this point in the history
  • Loading branch information
Amzd authored Oct 26, 2024
1 parent a8427c6 commit ce3be33
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions deltachat-ios/Chat/ChatViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,9 @@ class ChatViewController: UITableViewController, UITableViewDropDelegate {
} else if navigationController?.topViewController != self {
// Don't show inputAccessoryView when not top view controller
return false
} else if contextMenuVisible || UIMenuController.shared.isMenuVisible {
// Don't show inputAccessoryView when context menu is visible
return false
} else {
return shouldBecomeFirstResponder
}
Expand Down Expand Up @@ -1896,9 +1899,6 @@ extension ChatViewController {
cell.reactionsView.isHidden = true
contextMenuVisible = true

shouldBecomeFirstResponder = false
messageInputBar.inputTextView.resignFirstResponder()

updateScrollDownButtonVisibility()
}

Expand All @@ -1918,9 +1918,6 @@ extension ChatViewController {
cell.reactionsView.isHidden = false
contextMenuVisible = false

shouldBecomeFirstResponder = true
becomeFirstResponder()

updateScrollDownButtonVisibility()
}

Expand Down

0 comments on commit ce3be33

Please sign in to comment.