Skip to content
Snippets Groups Projects
Commit 522a5db2 authored by Binal Ahiya's avatar Binal Ahiya Committed by Kateryna Kostiuk
Browse files

conversation: fix UI while recording video

This patch fixes overlapping of record button
by message accessory view

GitLab: #240
Change-Id: I7cfb947fb48599380a103b32c0204d193035276f
parent 073a2bed
Branches
No related tags found
No related merge requests found
......@@ -225,6 +225,7 @@ class ConversationViewController: UIViewController,
let recordVideoAction = UIAlertAction(title: L10n.Alerts.recordVideoMessage, style: UIAlertAction.Style.default) {[weak self] _ in
if AVCaptureDevice.authorizationStatus(for: AVMediaType.audio) == AVAuthorizationStatus.authorized {
if AVCaptureDevice.authorizationStatus(for: AVMediaType.video) == AVAuthorizationStatus.authorized {
self?.messageAccessoryView.messageTextView.resignFirstResponder()
self?.viewModel.recordVideoFile()
} else {
AVCaptureDevice.requestAccess(for: AVMediaType.video, completionHandler: { (granted: Bool) -> Void in
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment