Commit 8f1ed031 authored by Ronan's avatar Ronan
Browse files

feat(ChatRoom): call right `setSubject` method

parent 82132c72
......@@ -68,7 +68,7 @@ ClientGroupChatRoom::ClientGroupChatRoom (LinphoneCore *core, const Address &me,
: ChatRoom(*new ClientGroupChatRoomPrivate(core)), RemoteConference(core, me, nullptr) {
static_cast<RemoteConferencePrivate *>(Conference::mPrivate)->focus =
ObjectFactory::create<Participant>(Address(uri));
setSubject(subject);
RemoteConference::setSubject(subject);
}
int ClientGroupChatRoom::getCapabilities () const {
......@@ -152,7 +152,7 @@ void ClientGroupChatRoom::leave () {
L_D();
RemoteConferencePrivate *conferencePrivate =
static_cast<RemoteConferencePrivate *>(Conference::mPrivate);
static_cast<RemoteConferencePrivate *>(Conference::mPrivate);
conferencePrivate->eventHandler->unsubscribe();
shared_ptr<CallSession> session = conferencePrivate->focus->getPrivate()->getSession();
......@@ -298,7 +298,7 @@ void ClientGroupChatRoom::onParticipantSetAdmin (const Address &addr, bool isAdm
}
void ClientGroupChatRoom::onSubjectChanged (const std::string &subject) {
setSubject(subject);
RemoteConference::setSubject(subject);
LinphoneChatRoom *cr = L_GET_C_BACK_PTR(this);
LinphoneChatRoomCbs *cbs = linphone_chat_room_get_callbacks(cr);
LinphoneChatRoomCbsSubjectChangedCb cb = linphone_chat_room_cbs_get_subject_changed(cbs);
......
......@@ -30,9 +30,10 @@ LINPHONE_BEGIN_NAMESPACE
class LocalConferenceEventHandler;
class LocalConferencePrivate : public ConferencePrivate {
private:
public:
std::unique_ptr<LocalConferenceEventHandler> eventHandler;
private:
L_DECLARE_PUBLIC(LocalConference);
};
......
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