Commit 6b59aef7 authored by Ghislain MARY's avatar Ghislain MARY

Add config parameter to enable basic to client group chat room migration.

parent 1f076aa3
......@@ -76,7 +76,9 @@ shared_ptr<AbstractChatRoom> CorePrivate::createBasicChatRoom (
BasicChatRoom *basicChatRoom = new BasicChatRoom(q->getSharedFromThis(), chatRoomId);
if (
capabilities & ChatRoom::Capabilities::Migratable &&
linphone_core_get_conference_factory_uri(q->getCCore())
linphone_core_get_conference_factory_uri(q->getCCore()) &&
linphone_config_get_bool(linphone_core_get_config(q->getCCore()),
"misc", "enable_basic_to_client_group_chat_room_migration", FALSE)
)
chatRoom.reset(new BasicToClientGroupChatRoom(shared_ptr<BasicChatRoom>(basicChatRoom)));
else
......
......@@ -29,6 +29,7 @@ subscribe=0
[misc]
conference_factory_uri=sip:conference-factory@conf.example.org
enable_basic_to_client_group_chat_room_migration=1
[rtp]
audio_rtp_port=18070-28000
......
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