Commit 20c646bc authored by Guillaume BIENKOWSKI's avatar Guillaume BIENKOWSKI
Browse files

Allow multiple calls to linphone_core_message_storage_init

parent f0d7040f
......@@ -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;
if(ret != SQLITE_OK) {
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