mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-19 20:18:09 +00:00
Simplify addParticipants() method of Conference.
This commit is contained in:
parent
e8da88c543
commit
ecf6024bbf
1 changed files with 2 additions and 5 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue