fix lost of unread notification

This commit is contained in:
Danmei Chen 2019-01-25 16:33:39 +01:00
parent 3d92614919
commit ab279345ae

View file

@ -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) {