From 5ff4e6a4dd0752ef9ff53c2628d98c1462bbe6d5 Mon Sep 17 00:00:00 2001 From: Paul Cartier Date: Wed, 25 Mar 2020 09:28:35 +0100 Subject: [PATCH] migrate call history db --- Classes/LinphoneManager.m | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Classes/LinphoneManager.m b/Classes/LinphoneManager.m index ce30dc8ed..00113deb5 100644 --- a/Classes/LinphoneManager.m +++ b/Classes/LinphoneManager.m @@ -1853,6 +1853,13 @@ static int comp_call_state_paused(const LinphoneCall *call, const void *param) { removeItemAtPath:[LinphoneManager oldDataFile:@"x3dh.c25519.sqlite3"] error:nil]; } + + // call history + if ([LinphoneManager copyFile:[LinphoneManager oldDataFile:kLinphoneInternalChatDBFilename] destination:[LinphoneManager dataFile:kLinphoneInternalChatDBFilename] override:TRUE ignore:TRUE]) { + [NSFileManager.defaultManager + removeItemAtPath:[LinphoneManager oldDataFile:kLinphoneInternalChatDBFilename] + error:nil]; + } } - (void)renameDefaultSettings {