fix a keyboard issue for calls

pull/1053/head
Ryan ZHAO 10 months ago
parent 12d499a5e5
commit b37e6a03db

@ -601,7 +601,7 @@ final class CallVC: UIViewController, VideoPreviewDelegate {
Timer.scheduledTimer(withTimeInterval: 2, repeats: false) { [weak self] _ in Timer.scheduledTimer(withTimeInterval: 2, repeats: false) { [weak self] _ in
DispatchQueue.main.async { DispatchQueue.main.async {
self?.presentingViewController?.dismiss(animated: true, completion: { self?.dismiss(animated: true, completion: {
self?.conversationVC?.showInputAccessoryView() self?.conversationVC?.showInputAccessoryView()
}) })
} }
@ -626,9 +626,13 @@ final class CallVC: UIViewController, VideoPreviewDelegate {
AppEnvironment.shared.callManager.reportCurrentCallEnded(reason: nil) AppEnvironment.shared.callManager.reportCurrentCallEnded(reason: nil)
} }
Timer.scheduledTimer(withTimeInterval: 1, repeats: false) { [weak self] _ in
DispatchQueue.main.async { DispatchQueue.main.async {
self?.dismiss(animated: true, completion: {
self?.conversationVC?.becomeFirstResponder()
self?.conversationVC?.showInputAccessoryView() self?.conversationVC?.showInputAccessoryView()
self?.presentingViewController?.dismiss(animated: true, completion: nil) })
}
} }
} }
} }

@ -808,12 +808,10 @@ extension ConversationVC:
} }
return return
} }
UIView.animate(withDuration: 0.25, animations: {
self.inputAccessoryView?.isHidden = false self.inputAccessoryView?.isHidden = false
self.inputAccessoryView?.alpha = 1 self.inputAccessoryView?.alpha = 1
// UIView.animate(withDuration: 0.25, animations: { })
// self.inputAccessoryView?.isHidden = false
// self.inputAccessoryView?.alpha = 1
// })
} }
// MARK: MessageCellDelegate // MARK: MessageCellDelegate

Loading…
Cancel
Save