Commit fb8d255b authored by Ronan's avatar Ronan
Browse files

feat(CoreChatRoom): do not create BasicToClientGroupChatRoom if not factory uri configured

parent 5a9d0dfd
......@@ -74,7 +74,10 @@ shared_ptr<AbstractChatRoom> CorePrivate::createBasicChatRoom (
chatRoom.reset(new RealTimeTextChatRoom(q->getSharedFromThis(), chatRoomId));
else {
BasicChatRoom *basicChatRoom = new BasicChatRoom(q->getSharedFromThis(), chatRoomId);
if (capabilities & ChatRoom::Capabilities::Migratable)
if (
capabilities & ChatRoom::Capabilities::Migratable &&
chatRoom.reset(new BasicToClientGroupChatRoom(shared_ptr<BasicChatRoom>(basicChatRoom)));
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