Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
liblinphone
Commits
47943bf8
Commit
47943bf8
authored
Dec 22, 2017
by
Benjamin REIS
Browse files
adapt findOneToOneChatroom to both basic and clientGroup
parent
fe8930ce
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
src/core/core-chat-room.cpp
src/core/core-chat-room.cpp
+4
-2
No files found.
src/core/core-chat-room.cpp
View file @
47943bf8
...
...
@@ -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
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment