fix(chat-room): avoid recursive call

This commit is contained in:
Ronan Abhamon 2017-12-13 12:08:38 +01:00
parent e401903ea3
commit 98e5be44d1

View file

@ -246,8 +246,6 @@ void ChatRoomPrivate::onChatMessageReceived (const shared_ptr<ChatMessage> &chat
ContentType contentType = chatMessage->getPrivate()->getContentType();
if (contentType != ContentType::Imdn && contentType != ContentType::ImIsComposing) {
onChatMessageReceived(chatMessage);
LinphoneChatRoom *chatRoom = L_GET_C_BACK_PTR(q);
LinphoneChatRoomCbs *cbs = linphone_chat_room_get_callbacks(chatRoom);
LinphoneChatRoomCbsParticipantAddedCb cb = linphone_chat_room_cbs_get_chat_message_received(cbs);