From 41253672a68d37e81e8e27082e56fa8023b478fe Mon Sep 17 00:00:00 2001 From: Benjamin Reis Date: Thu, 30 Nov 2017 14:17:31 +0100 Subject: [PATCH] update chatListsView when we are invited in a new chat room --- Classes/LinphoneManager.m | 5 +++++ submodules/linphone | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Classes/LinphoneManager.m b/Classes/LinphoneManager.m index e4a8f706f..7a28117bc 100644 --- a/Classes/LinphoneManager.m +++ b/Classes/LinphoneManager.m @@ -1400,6 +1400,10 @@ static void linphone_iphone_call_encryption_changed(LinphoneCore *lc, LinphoneCa [NSNotificationCenter.defaultCenter postNotificationName:kLinphoneCallEncryptionChanged object:self userInfo:dict]; } +void linphone_iphone_chatroom_instantiated(LinphoneCore *lc, LinphoneChatRoom *cr) { + [NSNotificationCenter.defaultCenter postNotificationName:kLinphoneMessageReceived object:nil]; +} + #pragma mark - Message composition start - (void)alertLIME:(LinphoneChatRoom *)room { NSString *title = NSLocalizedString(@"LIME warning", nil); @@ -1963,6 +1967,7 @@ void popup_link_account_cb(LinphoneAccountCreator *creator, LinphoneAccountCreat linphone_core_cbs_set_global_state_changed(cbs, linphone_iphone_global_state_changed); linphone_core_cbs_set_notify_received(cbs, linphone_iphone_notify_received); linphone_core_cbs_set_call_encryption_changed(cbs, linphone_iphone_call_encryption_changed); + linphone_core_cbs_set_chat_room_instantiated(cbs, linphone_iphone_chatroom_instantiated); linphone_core_cbs_set_user_data(cbs, (__bridge void *)(self)); theLinphoneCore = linphone_factory_create_core_with_config(factory, cbs, _configDb); diff --git a/submodules/linphone b/submodules/linphone index d111d78f7..7c2ce9d17 160000 --- a/submodules/linphone +++ b/submodules/linphone @@ -1 +1 @@ -Subproject commit d111d78f71114d0ec0ba01af93a344c1d318cf59 +Subproject commit 7c2ce9d173e100d84afb5fb5ef90189a787ddb8d