Disable voice recording function when in call

This commit is contained in:
Christophe Deschamps 2021-09-02 21:22:38 +02:00
parent e23f80ca51
commit 04aded6a48
2 changed files with 6 additions and 0 deletions

View file

@ -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 {

View file

@ -165,6 +165,9 @@
}
[super update];
_vrPlayPause.enabled = linphone_core_get_calls_nb(LC) == 0;
NSMutableDictionary<NSString *, NSString *> *encrptedFilePaths = NULL;
if ([VFSUtil vfsEnabledWithGroupName:kLinphoneMsgNotificationAppGroupId]) {
encrptedFilePaths = [LinphoneManager getMessageAppDataForKey:@"encryptedfiles" inMessage:self.message];