Commit 70219e4c authored by Ghislain MARY's avatar Ghislain MARY

Subscribe to the conference event package only when the contact returned by...

Subscribe to the conference event package only when the contact returned by the conference factory contains the "isfocus" feature tag.
parent 5961e5a6
......@@ -22,6 +22,7 @@
#include "conference/session/call-session-p.h"
#include "conference/participant-p.h"
#include "content/content.h"
#include "hacks/hacks.h"
#include "logger/logger.h"
// =============================================================================
......@@ -108,7 +109,6 @@ void ClientGroupChatRoom::onConferenceCreated (const Address &addr) {
L_D();
conferenceAddress = addr;
d->setState(ChatRoom::State::Created);
eventHandler->subscribe(conferenceAddress);
}
void ClientGroupChatRoom::onConferenceTerminated (const Address &addr) {
......@@ -172,6 +172,8 @@ void ClientGroupChatRoom::onCallSessionStateChanged (const CallSession &session,
Address addr(session.getRemoteContact());
addr.clean();
onConferenceCreated(addr);
if (Hacks::contactHasParam(session.getRemoteContact(), "isfocus"))
eventHandler->subscribe(conferenceAddress);
}
}
......
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