Commit 7532be66 authored by Ghislain MARY's avatar Ghislain MARY

Fix call log removal when using the database storage.

parent eec47ba4
......@@ -4595,8 +4595,8 @@ void linphone_core_remove_call_log(LinphoneCore *lc, LinphoneCallLog *cl) {
linphone_core_delete_call_log(lc, cl);
}
#endif
lc->call_logs = bctbx_list_remove(lc->call_logs, cl);
if (!call_logs_sqlite_db_found) {
lc->call_logs = bctbx_list_remove(lc->call_logs, cl);
call_logs_write_to_config_file(lc);
linphone_call_log_unref(cl);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment