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
18ed78a4
Commit
18ed78a4
authored
Oct 05, 2017
by
Ghislain MARY
Browse files
Prevent duplicates when adding participants to a conference.
parent
eab04534
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
src/conference/conference.cpp
src/conference/conference.cpp
+8
-2
No files found.
src/conference/conference.cpp
View file @
18ed78a4
...
...
@@ -45,8 +45,14 @@ void Conference::addParticipant (const Address &addr, const CallSessionParams *p
}
void
Conference
::
addParticipants
(
const
list
<
Address
>
&
addresses
,
const
CallSessionParams
*
params
,
bool
hasMedia
)
{
for
(
const
auto
&
addr
:
addresses
)
addParticipant
(
addr
,
params
,
hasMedia
);
list
<
Address
>
sortedAddresses
(
addresses
);
sortedAddresses
.
sort
();
sortedAddresses
.
unique
();
for
(
const
auto
&
addr
:
sortedAddresses
)
{
shared_ptr
<
Participant
>
participant
=
findParticipant
(
addr
);
if
(
!
participant
)
addParticipant
(
addr
,
params
,
hasMedia
);
}
}
bool
Conference
::
canHandleParticipants
()
const
{
...
...
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