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];