migrate call history db

This commit is contained in:
Paul Cartier 2020-03-25 09:28:35 +01:00
parent b830262ccd
commit 5ff4e6a4dd

View file

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