Commit fc852805 authored by Ghislain MARY's avatar Ghislain MARY
Browse files

Check keywords before setting the OneToOne capability on a ClientGroupChatRoom.

parent 55050265
......@@ -17,6 +17,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#include <algorithm>
#include "linphone/utils/utils.h"
#include "address/address-p.h"
......@@ -522,7 +524,8 @@ void ClientGroupChatRoom::onConferenceCreated (const IdentityAddress &addr) {
void ClientGroupChatRoom::onConferenceKeywordsChanged (const vector<string> &keywords) {
L_D();
d->capabilities |= ClientGroupChatRoom::Capabilities::OneToOne;
if (find(keywords.cbegin(), keywords.cend(), "one-to-one") != keywords.cend())
d->capabilities |= ClientGroupChatRoom::Capabilities::OneToOne;
}
void ClientGroupChatRoom::onConferenceTerminated (const IdentityAddress &addr) {
......
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