From 04aded6a48236eb08c1fc1ccc1776064917249e0 Mon Sep 17 00:00:00 2001 From: Christophe Deschamps Date: Thu, 2 Sep 2021 21:22:38 +0200 Subject: [PATCH] Disable voice recording function when in call --- Classes/ChatConversationView.m | 3 +++ Classes/LinphoneUI/UIChatBubblePhotoCell.m | 3 +++ 2 files changed, 6 insertions(+) diff --git a/Classes/ChatConversationView.m b/Classes/ChatConversationView.m index a052f1799..1a29be608 100644 --- a/Classes/ChatConversationView.m +++ b/Classes/ChatConversationView.m @@ -272,6 +272,7 @@ static UICompositeViewDescription *compositeDescription = nil; // Voice recording _vrView.hidden = true; _preservePendingRecording = false; + _toggleRecord.enabled = linphone_core_get_calls_nb(LC) == 0; } @@ -474,6 +475,8 @@ static UICompositeViewDescription *compositeDescription = nil; - (void)callUpdateEvent:(NSNotification *)notif { [self updateSuperposedButtons]; + _toggleRecord.enabled = linphone_core_get_calls_nb(LC) == 0; + } - (void)update { diff --git a/Classes/LinphoneUI/UIChatBubblePhotoCell.m b/Classes/LinphoneUI/UIChatBubblePhotoCell.m index 5371c49ad..43474ea1a 100644 --- a/Classes/LinphoneUI/UIChatBubblePhotoCell.m +++ b/Classes/LinphoneUI/UIChatBubblePhotoCell.m @@ -165,6 +165,9 @@ } [super update]; + _vrPlayPause.enabled = linphone_core_get_calls_nb(LC) == 0; + + NSMutableDictionary *encrptedFilePaths = NULL; if ([VFSUtil vfsEnabledWithGroupName:kLinphoneMsgNotificationAppGroupId]) { encrptedFilePaths = [LinphoneManager getMessageAppDataForKey:@"encryptedfiles" inMessage:self.message];