Didn't handle message if chatroom not found on server

This commit is contained in:
Erwan Croze 2018-01-23 13:41:22 +01:00
parent 94e457427e
commit 69f1982653

View file

@ -137,7 +137,7 @@ int linphone_core_message_received(LinphoneCore *lc, LinphonePrivate::SalOp *op,
);
if (chatRoom)
reason = L_GET_PRIVATE(chatRoom)->onSipMessageReceived(op, sal_msg);
else {
else if (!linphone_core_conference_server_enabled(lc)) {
LinphoneAddress *addr = linphone_address_new(sal_msg->from);
linphone_address_clean(addr);
LinphoneChatRoom *cr = linphone_core_get_chat_room(lc, addr);