From f5bac47add6b625217f8fa58caa10347c2bb0220 Mon Sep 17 00:00:00 2001 From: Paul Cartier Date: Wed, 1 Apr 2020 14:33:42 +0200 Subject: [PATCH] migrate zrtp_secrets file --- Classes/LinphoneManager.m | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Classes/LinphoneManager.m b/Classes/LinphoneManager.m index ceb383247..a7e377260 100644 --- a/Classes/LinphoneManager.m +++ b/Classes/LinphoneManager.m @@ -1860,6 +1860,12 @@ static int comp_call_state_paused(const LinphoneCall *call, const void *param) { removeItemAtPath:[LinphoneManager oldDataFile:kLinphoneInternalChatDBFilename] error:nil]; } + + if ([LinphoneManager copyFile:[LinphoneManager oldDataFile:@"zrtp_secrets"] destination:[LinphoneManager dataFile:@"zrtp_secrets"] override:TRUE ignore:TRUE]) { + [NSFileManager.defaultManager + removeItemAtPath:[LinphoneManager oldDataFile:@"zrtp_secrets"] + error:nil]; + } } - (void)renameDefaultSettings {