Simplify addParticipants() method of Conference.

This commit is contained in:
Ghislain MARY 2018-02-15 16:20:49 +01:00
parent e8da88c543
commit ecf6024bbf

View file

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