mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-19 03:58:08 +00:00
Change the state of the client group chat room to "created" when it has been created remotely.
This commit is contained in:
parent
35f48398f4
commit
f9fc3e1a81
2 changed files with 18 additions and 2 deletions
|
|
@ -87,11 +87,13 @@ void ClientGroupChatRoom::removeParticipants (const list<shared_ptr<Participant>
|
|||
// -----------------------------------------------------------------------------
|
||||
|
||||
void ClientGroupChatRoom::onConferenceCreated (const Address &addr) {
|
||||
// TODO
|
||||
L_D(ClientGroupChatRoom);
|
||||
d->setState(ChatRoom::State::Created);
|
||||
}
|
||||
|
||||
void ClientGroupChatRoom::onConferenceTerminated (const Address &addr) {
|
||||
// TODO
|
||||
L_D(ClientGroupChatRoom);
|
||||
d->setState(ChatRoom::State::Terminated);
|
||||
}
|
||||
|
||||
void ClientGroupChatRoom::onParticipantAdded (const Address &addr) {
|
||||
|
|
@ -137,4 +139,13 @@ void ClientGroupChatRoom::onParticipantSetAdmin (const Address &addr, bool isAdm
|
|||
cb(cr, L_GET_C_BACK_PTR(participant), isAdmin);
|
||||
}
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
|
||||
void ClientGroupChatRoom::onCallSessionStateChanged (const CallSession &session, LinphoneCallState state, const std::string &message) {
|
||||
if (state == LinphoneCallConnected) {
|
||||
// TODO: Get the conference ID instead of the remote address
|
||||
onConferenceCreated(session.getRemoteAddress());
|
||||
}
|
||||
}
|
||||
|
||||
LINPHONE_END_NAMESPACE
|
||||
|
|
|
|||
|
|
@ -24,6 +24,7 @@
|
|||
|
||||
#include "chat/chat-room.h"
|
||||
#include "conference/remote-conference.h"
|
||||
#include "conference/session/call-session.h"
|
||||
|
||||
#include "linphone/types.h"
|
||||
|
||||
|
|
@ -57,6 +58,10 @@ private:
|
|||
void onParticipantRemoved (const Address &addr) override;
|
||||
void onParticipantSetAdmin (const Address &addr, bool isAdmin) override;
|
||||
|
||||
private:
|
||||
/* CallSessionListener */
|
||||
void onCallSessionStateChanged (const CallSession &session, LinphoneCallState state, const std::string &message) override;
|
||||
|
||||
private:
|
||||
L_DECLARE_PRIVATE(ClientGroupChatRoom);
|
||||
L_DISABLE_COPY(ClientGroupChatRoom);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue