From f249caf0c6e12f0e95f35e1422386eb4c35e2a36 Mon Sep 17 00:00:00 2001 From: Danmei Chen Date: Fri, 17 Apr 2020 11:34:06 +0200 Subject: [PATCH] fix crash of updating imdn list --- Classes/ChatConversationImdnView.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/ChatConversationImdnView.m b/Classes/ChatConversationImdnView.m index 522098fd7..6e87d487e 100644 --- a/Classes/ChatConversationImdnView.m +++ b/Classes/ChatConversationImdnView.m @@ -70,7 +70,7 @@ static UICompositeViewDescription *compositeDescription = nil; } - (void)updateImdnList { - if (_msg) { + if (_msg && linphone_chat_message_get_chat_room(_msg)) { _displayedList = linphone_chat_message_get_participants_by_imdn_state(_msg, LinphoneChatMessageStateDisplayed); _receivedList = linphone_chat_message_get_participants_by_imdn_state(_msg, LinphoneChatMessageStateDeliveredToUser); _notReceivedList = linphone_chat_message_get_participants_by_imdn_state(_msg, LinphoneChatMessageStateDelivered);