Commit 8b0f6089 authored by jehan's avatar jehan

fix findOneToOneChatRoom in case of chatroom has no participant in

parent cf5abd62
......@@ -195,6 +195,7 @@ shared_ptr<AbstractChatRoom> 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)
)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment