fix findOneToOneChatRoom in case of chatroom has no participant in

This commit is contained in:
Jehan Monnier 2018-03-05 13:29:41 +01:00
parent cf5abd62b7
commit 8b0f60894b

View file

@ -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)
)