mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-19 20:18:09 +00:00
adapt findOneToOneChatroom to both basic and clientGroup
This commit is contained in:
parent
fe8930cecd
commit
47943bf874
1 changed files with 4 additions and 2 deletions
|
|
@ -172,8 +172,10 @@ shared_ptr<AbstractChatRoom> Core::findOneToOneChatRoom (
|
|||
for (const auto &chatRoom : d->chatRooms) {
|
||||
if (
|
||||
chatRoom->getParticipantCount() == 1 &&
|
||||
chatRoom->getLocalAddress() == localAddress &&
|
||||
participantAddress == chatRoom->getParticipants().front()->getAddress()
|
||||
(
|
||||
(chatRoom->getLocalAddress() == localAddress && participantAddress == chatRoom->getParticipants().front()->getAddress()) ||
|
||||
(chatRoom->getLocalAddress() == localAddress.getAddressWithoutGruu() && chatRoom->getPeerAddress() == participantAddress)
|
||||
)
|
||||
)
|
||||
return chatRoom;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue