Commit ecf6024b authored by Ghislain MARY's avatar Ghislain MARY
Browse files

Simplify addParticipants() method of Conference.

parent e8da88c5
...@@ -61,11 +61,8 @@ void Conference::addParticipants (const list<IdentityAddress> &addresses, const ...@@ -61,11 +61,8 @@ void Conference::addParticipants (const list<IdentityAddress> &addresses, const
list<IdentityAddress> sortedAddresses(addresses); list<IdentityAddress> sortedAddresses(addresses);
sortedAddresses.sort(); sortedAddresses.sort();
sortedAddresses.unique(); sortedAddresses.unique();
for (const auto &addr: sortedAddresses) { for (const auto &addr: sortedAddresses)
shared_ptr<Participant> participant = findParticipant(addr); addParticipant(addr, params, hasMedia);
if (!participant)
addParticipant(addr, params, hasMedia);
} }
bool Conference::canHandleParticipants () const { bool Conference::canHandleParticipants () const {
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