Commit c6026139 authored by Nicolas Michon's avatar Nicolas Michon

ChatRoomParams: automatically enable FlexisipChat if group chat set to true

parent f1ade484
......@@ -61,7 +61,12 @@ void ChatRoomParams::setEncrypted(bool encrypted) {
}
}
void ChatRoomParams::setGroup(bool group) { mGroup = group; }
void ChatRoomParams::setGroup(bool group) {
mGroup = group;
if (group) {
mChatRoomBackend = ChatRoomBackend::FlexisipChat;
}
}
void ChatRoomParams::setRealTimeText(bool rtt) { mRtt = rtt; }
......
......@@ -476,8 +476,8 @@ static void group_chat_room_params (void) {
}
//Should return NULL because params are invalid
linphone_chat_room_params_set_backend(params, LinphoneChatRoomBackendBasic);
linphone_chat_room_params_enable_group(params, TRUE); //Group + basic backend = invalid
linphone_chat_room_params_enable_group(params, TRUE);
linphone_chat_room_params_set_backend(params, LinphoneChatRoomBackendBasic); //Group + basic backend = invalid
BC_ASSERT_FALSE(linphone_chat_room_params_is_valid(params));
marieCr = linphone_core_create_chat_room_2(marie->lc, params, "Invalid chat room subject", NULL);
BC_ASSERT_PTR_NULL(marieCr);
......
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