Commit db15df1b authored by Ronan's avatar Ronan

fix(MainDb): do not use == in sql query

parent 838fdcc3
......@@ -994,7 +994,7 @@ void MainDbPrivate::updateSchema () {
// with them and we prefer to keep using basic chat rooms instead
const int &capabilities = ChatRoom::CapabilitiesMask(ChatRoom::Capabilities::Conference)
| ChatRoom::CapabilitiesMask(ChatRoom::Capabilities::OneToOne);
*session << "DELETE FROM chat_room WHERE (capabilities & :capabilities1) == :capabilities2",
*session << "DELETE FROM chat_room WHERE (capabilities & :capabilities1) = :capabilities2",
soci::use(capabilities), soci::use(capabilities);
linphone_config_set_bool(linphone_core_get_config(q->getCore()->getCCore()), "misc", "prefer_basic_chat_room", TRUE);
}
......
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