From e26ce48bfdc8653fe1a09c83776edb1de4ee214c Mon Sep 17 00:00:00 2001 From: Sylvain Berfini Date: Fri, 3 Nov 2017 11:34:02 +0100 Subject: [PATCH] Call chatroom state changed with CreationError state when group chat room fails --- src/chat/chat-room/client-group-chat-room.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/chat/chat-room/client-group-chat-room.cpp b/src/chat/chat-room/client-group-chat-room.cpp index e50b13e35..1d039086e 100644 --- a/src/chat/chat-room/client-group-chat-room.cpp +++ b/src/chat/chat-room/client-group-chat-room.cpp @@ -451,8 +451,11 @@ void ClientGroupChatRoom::onCallSessionStateChanged ( dConference->eventHandler->subscribe(getConferenceAddress()); } else if (d->state == ChatRoom::State::TerminationPending) dConference->focus->getPrivate()->getSession()->terminate(); - } else if (state == LinphoneCallReleased && d->state == ChatRoom::State::TerminationPending) + } else if (state == LinphoneCallReleased && d->state == ChatRoom::State::TerminationPending) { onConferenceTerminated(getConferenceAddress()); + } else if (state == LinphoneCallError && d->state == ChatRoom::State::CreationPending) { + d->setState(ChatRoom::State::CreationFailed); + } } LINPHONE_END_NAMESPACE