File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -659,7 +659,9 @@ private extension ChatViewController {
659
659
animations: {
660
660
self . messageInputBar. topStackView. addArrangedSubview ( self . replyView)
661
661
} )
662
- messageInputBar. inputTextView. becomeFirstResponder ( )
662
+ if viewAppeared {
663
+ messageInputBar. inputTextView. becomeFirstResponder ( )
664
+ }
663
665
}
664
666
665
667
replyView. update ( with: message)
Original file line number Diff line number Diff line change @@ -191,7 +191,7 @@ final class ChatViewModel: NSObject {
191
191
}
192
192
193
193
func presentKeyboardOnStartIfNeeded( ) {
194
- guard !inputText. isEmpty && replyMessage = = nil else { return }
194
+ guard !inputText. isEmpty || replyMessage ! = nil else { return }
195
195
presentKeyboard. send ( )
196
196
}
197
197
You can’t perform that action at this time.
0 commit comments