Commit 35634f44 authored by Ghislain MARY's avatar Ghislain MARY

Add findParticipantDevice method on Conference.

parent a12a2297
......@@ -141,6 +141,19 @@ shared_ptr<Participant> Conference::findParticipant (const shared_ptr<const Call
return nullptr;
shared_ptr<ParticipantDevice> Conference::findParticipantDevice (const shared_ptr<const CallSession> &session) const {
for (const auto &participant : d->participants) {
for (const auto &device : participant->getPrivate()->getDevices()) {
if (device->getSession() == session)
return device;
return nullptr;
bool Conference::isMe (const IdentityAddress &addr) const {
IdentityAddress cleanedAddr(addr);
......@@ -34,6 +34,7 @@ class CallSession;
class CallSessionListener;
class CallSessionPrivate;
class ConferencePrivate;
class ParticipantDevice;
class LINPHONE_PUBLIC Conference :
public ConferenceInterface,
......@@ -47,6 +48,7 @@ public:
std::shared_ptr<Participant> getActiveParticipant () const;
std::shared_ptr<Participant> findParticipant (const std::shared_ptr<const CallSession> &session) const;
std::shared_ptr<ParticipantDevice> findParticipantDevice (const std::shared_ptr<const CallSession> &session) const;
/* ConferenceInterface */
void addParticipant (const IdentityAddress &addr, const CallSessionParams *params, bool hasMedia) override;
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