mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-25 07:08:11 +00:00
Allow multiple calls to linphone_core_message_storage_init
This commit is contained in:
parent
f0d7040fbf
commit
20c646bc4a
1 changed files with 4 additions and 1 deletions
|
|
@ -87,7 +87,7 @@ static void create_chat_message(char **argv, void *data){
|
|||
static int callback_all(void *data, int argc, char **argv, char **colName){
|
||||
LinphoneCore* lc = (LinphoneCore*) data;
|
||||
char* address = argv[0];
|
||||
linphone_core_create_chat_room(lc, address);
|
||||
linphone_core_get_or_create_chat_room(lc, address);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
@ -378,6 +378,9 @@ void linphone_core_message_storage_init(LinphoneCore *lc){
|
|||
int ret;
|
||||
const char *errmsg;
|
||||
sqlite3 *db;
|
||||
|
||||
linphone_core_message_storage_close(lc);
|
||||
|
||||
ret=sqlite3_open(lc->chat_db_file,&db);
|
||||
if(ret != SQLITE_OK) {
|
||||
errmsg=sqlite3_errmsg(db);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue