mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-06 21:33:08 +00:00
Check the reason is "Not Acceptable" for doing fallback from client group chat room to basic chat room.
This commit is contained in:
parent
54980b5267
commit
5394f91a94
1 changed files with 2 additions and 1 deletions
|
|
@ -21,6 +21,7 @@
|
|||
#include "client-group-to-basic-chat-room.h"
|
||||
#include "proxy-chat-room-p.h"
|
||||
#include "c-wrapper/c-wrapper.h"
|
||||
#include "conference/session/call-session.h"
|
||||
#include "core/core-p.h"
|
||||
|
||||
// =============================================================================
|
||||
|
|
@ -61,7 +62,7 @@ public:
|
|||
if (!cgcr)
|
||||
return;
|
||||
if ((newState == LinphoneCallError) && (cgcr->getState() == ChatRoom::State::CreationPending)
|
||||
&& (invitedAddresses.size() == 1)) {
|
||||
&& (session->getReason() == LinphoneReasonNotAcceptable) && (invitedAddresses.size() == 1)) {
|
||||
cgcr->getPrivate()->onCallSessionStateChanged(session, newState, message);
|
||||
cgcr->getPrivate()->setCallSessionListener(nullptr);
|
||||
cgcr->getPrivate()->setChatRoomListener(nullptr);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue