fix crash of updating imdn list

This commit is contained in:
Danmei Chen 2020-04-17 11:34:06 +02:00
parent 3e777b5cc2
commit f249caf0c6

View file

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