From 8b0f60894b6fd5a26d65fe28eb319be3bfd68d9b Mon Sep 17 00:00:00 2001 From: Jehan Monnier Date: Mon, 5 Mar 2018 13:29:41 +0100 Subject: [PATCH] fix findOneToOneChatRoom in case of chatroom has no participant in --- src/core/core-chat-room.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/core-chat-room.cpp b/src/core/core-chat-room.cpp index 1db4bc109..bb0bc95d7 100644 --- a/src/core/core-chat-room.cpp +++ b/src/core/core-chat-room.cpp @@ -195,6 +195,7 @@ shared_ptr Core::findOneToOneChatRoom ( // The only participant's address must match the participantAddress argument if ( localAddress == curLocalAddress && + ! chatRoom->getParticipants().empty() && participantAddress.getAddressWithoutGruu() == chatRoom->getParticipants().front()->getAddress() && (capabilities & ChatRoom::Capabilities::Conference) )