Commit d3b034d9 authored by Ghislain MARY's avatar Ghislain MARY

Set OneToOne capability on a ClientGroupChatRoom if the received INVITE...

Set OneToOne capability on a ClientGroupChatRoom if the received INVITE contains the One-To-One-Chat-Room header.
parent e3c0eeef
Pipeline #341 failed with stage
in 0 seconds
......@@ -145,6 +145,9 @@ static void call_received(SalCallOp *h) {
h->getSubject(), h->getRemoteContact(), h->getRemoteBody(), false
);
}
const char *oneToOneChatRoomStr = sal_custom_header_find(h->getRecvCustomHeaders(), "One-To-One-Chat-Room");
if (oneToOneChatRoomStr && (strcmp(oneToOneChatRoomStr, "true") == 0))
L_GET_PRIVATE(static_pointer_cast<ClientGroupChatRoom>(chatRoom))->addOneToOneCapability();
L_GET_PRIVATE(static_pointer_cast<ClientGroupChatRoom>(chatRoom))->confirmJoining(h);
}
return;
......
......@@ -39,6 +39,7 @@ public:
void setCallSessionListener (CallSessionListener *listener);
void setChatRoomListener (ChatRoomListener *listener) { chatRoomListener = listener; }
void addOneToOneCapability ();
unsigned int getLastNotifyId () const;
// ChatRoomListener
......
......@@ -106,6 +106,10 @@ void ClientGroupChatRoomPrivate::setCallSessionListener (CallSessionListener *li
}
}
void ClientGroupChatRoomPrivate::addOneToOneCapability () {
capabilities |= ClientGroupChatRoom::Capabilities::OneToOne;
}
unsigned int ClientGroupChatRoomPrivate::getLastNotifyId () const {
L_Q_T(RemoteConference, qConference);
return qConference->getPrivate()->eventHandler->getLastNotify();
......
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