mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 11:08:06 +00:00
Chat: fix crash when sending chat message to non-lime user
This commit is contained in:
parent
c2b0296252
commit
3a8a97919e
1 changed files with 4 additions and 1 deletions
|
|
@ -226,8 +226,11 @@ static UICompositeViewDescription *compositeDescription = nil;
|
|||
[LinphoneManager setValueInMessageAppData:[internalUrl absoluteString] forKey:@"localimage" inMessage:msg];
|
||||
}
|
||||
|
||||
linphone_chat_room_send_chat_message(_chatRoom, msg);
|
||||
// we must ref & unref message because in case of error, it will be destroy otherwise
|
||||
linphone_chat_room_send_chat_message(_chatRoom, linphone_chat_message_ref(msg));
|
||||
[_tableController addChatEntry:msg];
|
||||
linphone_chat_message_unref(msg);
|
||||
|
||||
[_tableController scrollToBottom:true];
|
||||
|
||||
return TRUE;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue