Commit 50244176 authored by Ronan's avatar Ronan

fix(core-chat-room): coding style

parent d83cd879
......@@ -172,11 +172,11 @@ shared_ptr<AbstractChatRoom> Core::findOneToOneChatRoom (
) const {
L_D();
for (const auto &chatRoom : d->chatRooms) {
const IdentityAddress &curLocalAddress = chatRoom->getLocalAddress();
if (
chatRoom->getParticipantCount() == 1 &&
(
(chatRoom->getLocalAddress() == localAddress && participantAddress == chatRoom->getParticipants().front()->getAddress()) ||
(chatRoom->getLocalAddress() == localAddress.getAddressWithoutGruu() && chatRoom->getPeerAddress() == participantAddress)
chatRoom->getParticipantCount() == 1 && (
(curLocalAddress == localAddress && participantAddress == chatRoom->getParticipants().front()->getAddress()) ||
(curLocalAddress == localAddress.getAddressWithoutGruu() && chatRoom->getPeerAddress() == participantAddress)
)
)
return chatRoom;
......
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