Commit 5a9d0dfd authored by Ronan's avatar Ronan
Browse files

feat(BasicToClientGroupChatRoom): capabilities contains Migrate if the proxy is a basic chatroom

parent 67053e8e
......@@ -92,7 +92,10 @@ BasicToClientGroupChatRoom::BasicToClientGroupChatRoom (const shared_ptr<ChatRoo
BasicToClientGroupChatRoom::CapabilitiesMask BasicToClientGroupChatRoom::getCapabilities () const {
L_D();
return d->chatRoom->getCapabilities() | BasicToClientGroupChatRoom::Capabilities::Migratable;
CapabilitiesMask capabilities = d->chatRoom->getCapabilities();
if (capabilities.isSet(Capabilities::Basic))
capabilities.set(Capabilities::Migratable);
return capabilities;
}
shared_ptr<ChatMessage> BasicToClientGroupChatRoom::createChatMessage () {
......
This diff is collapsed.
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