From ab279345ae640baeb02b429a8f565f6a3e2656f8 Mon Sep 17 00:00:00 2001 From: Danmei Chen Date: Fri, 25 Jan 2019 16:33:39 +0100 Subject: [PATCH] fix lost of unread notification --- Classes/LinphoneManager.m | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Classes/LinphoneManager.m b/Classes/LinphoneManager.m index bb7e5551a..fed78bf7e 100644 --- a/Classes/LinphoneManager.m +++ b/Classes/LinphoneManager.m @@ -1440,8 +1440,10 @@ static void linphone_iphone_call_encryption_changed(LinphoneCore *lc, LinphoneCa } void linphone_iphone_chatroom_state_changed(LinphoneCore *lc, LinphoneChatRoom *cr, LinphoneChatRoomState state) { - if (state == LinphoneChatRoomStateCreated) - [NSNotificationCenter.defaultCenter postNotificationName:kLinphoneMessageReceived object:nil]; + if (state == LinphoneChatRoomStateCreated) { + // this will cause lost of unread notification of TabBarView + //[NSNotificationCenter.defaultCenter postNotificationName:kLinphoneMessageReceived object:nil]; + } } void linphone_iphone_version_update_check_result_received (LinphoneCore *lc, LinphoneVersionUpdateCheckResult result, const char *version, const char *url) {