From cd61f24054cc9b29334f7aa005ba2e6207d32ef6 Mon Sep 17 00:00:00 2001 From: Danmei Chen Date: Wed, 1 Apr 2020 15:08:48 +0200 Subject: [PATCH] use getLc --- Classes/LinphoneManager.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/LinphoneManager.m b/Classes/LinphoneManager.m index a7e377260..d4d49dc9e 100644 --- a/Classes/LinphoneManager.m +++ b/Classes/LinphoneManager.m @@ -1223,7 +1223,7 @@ static void linphone_iphone_is_composing_received(LinphoneCore *lc, LinphoneChat /** Should be called once per linphone_core_new() */ - (void)finishCoreConfiguration { //Force keep alive to workaround push notif on chat message - linphone_core_enable_keep_alive(theLinphoneCore, true); + linphone_core_enable_keep_alive([LinphoneManager getLc], true); // get default config from bundle NSString *zrtpSecretsFileName = [LinphoneManager dataFile:@"zrtp_secrets"];