From af9e79912078b1f6c1cdfe023923fb3b9dfa65cb Mon Sep 17 00:00:00 2001 From: DanmeiChen <danmei.chen@belledonne-communications.com> Date: Wed, 6 Feb 2019 09:28:02 +0100 Subject: [PATCH] Featre/fix no lime x3dh without network --- coreapi/linphonecore.c | 4 ++++ coreapi/proxy.c | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/coreapi/linphonecore.c b/coreapi/linphonecore.c index 345d1da928..86857321f0 100644 --- a/coreapi/linphonecore.c +++ b/coreapi/linphonecore.c @@ -2426,6 +2426,10 @@ static void linphone_core_init(LinphoneCore * lc, LinphoneCoreCbs *cbs, LpConfig if (automatically_start) { linphone_core_start(lc); } + + LinphoneConfig *lpconfig = linphone_core_get_config(lc); + bool enableLime = linphone_config_get_bool(lpconfig, "lime", "enable_lime_x3dh", TRUE); + linphone_core_enable_lime_x3dh(lc, enableLime); } void linphone_core_start (LinphoneCore *lc) { diff --git a/coreapi/proxy.c b/coreapi/proxy.c index e6d42cacfb..9b969980ac 100644 --- a/coreapi/proxy.c +++ b/coreapi/proxy.c @@ -1336,7 +1336,6 @@ void linphone_proxy_config_update(LinphoneProxyConfig *cfg){ linphone_proxy_config_activate_sip_setup(cfg); } if (can_register(cfg)){ - linphone_core_enable_lime_x3dh(lc, cfg->lime_x3dh); linphone_proxy_config_register(cfg); cfg->commit=FALSE; } -- GitLab