mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-02-07 14:18:25 +00:00
Change getResourceLists to use address
This commit is contained in:
parent
3abfd2749d
commit
2221411791
2 changed files with 6 additions and 6 deletions
|
|
@ -60,13 +60,13 @@ void RemoteConference::removeParticipant (const shared_ptr<const Participant> &p
|
|||
}
|
||||
|
||||
|
||||
string RemoteConference::getResourceLists(const list<shared_ptr<const Participant>> &participants) {
|
||||
string RemoteConference::getResourceLists(const list<shared_ptr<const Address>> &addresses) {
|
||||
ResourceLists rl = ResourceLists();
|
||||
ListType l = ListType();
|
||||
for(const auto &p : participants) {
|
||||
EntryType entry = EntryType(p->getAddress().asStringUriOnly());
|
||||
if(p->getAddress().getDisplayName() != "") {
|
||||
entry.setDisplayName(DisplayName(p->getAddress().getDisplayName()));
|
||||
for(const auto &addr : addresses) {
|
||||
EntryType entry = EntryType(addr->asStringUriOnly());
|
||||
if(addr->getDisplayName() != "") {
|
||||
entry.setDisplayName(DisplayName(addr->getDisplayName()));
|
||||
}
|
||||
l.getEntry().push_back(entry);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ public:
|
|||
std::shared_ptr<Participant> addParticipant (const Address &addr, const CallSessionParams *params, bool hasMedia) override;
|
||||
void removeParticipant (const std::shared_ptr<const Participant> &participant) override;
|
||||
|
||||
std::string getResourceLists(const std::list<std::shared_ptr<const Participant>> &participants);
|
||||
std::string getResourceLists(const std::list<std::shared_ptr<const Address>> &addresses);
|
||||
|
||||
protected:
|
||||
/* ConferenceListener */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue