From 073a25a534c3fa427114a9ec561ddc32fbb0a8dc Mon Sep 17 00:00:00 2001 From: Sylvain Berfini Date: Thu, 31 Mar 2016 09:10:30 +0200 Subject: [PATCH] Fixed lost contacts issue when switching to another config file --- coreapi/friend.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coreapi/friend.c b/coreapi/friend.c index 41d191535..368f2242b 100644 --- a/coreapi/friend.c +++ b/coreapi/friend.c @@ -1366,7 +1366,7 @@ void linphone_core_migrate_friends_from_rc_to_db(LinphoneCore *lc) { return; } - if (ms_list_size(linphone_friend_list_get_friends(lfl)) > 0) { + if (ms_list_size(linphone_friend_list_get_friends(lfl)) > 0 && lfl->storage_id == 0) { linphone_core_remove_friend_list(lc, lfl); lfl = linphone_core_create_friend_list(lc); linphone_core_add_friend_list(lc, lfl);