Commit 397dbc39 authored by Ronan's avatar Ronan
Browse files

fix(MainDb): set flags to 1 when chat room is terminated

parent 8b7f6ef6
...@@ -633,7 +633,7 @@ MainDb::MainDb (const shared_ptr<Core> &core) : AbstractDb(*new MainDbPrivate), ...@@ -633,7 +633,7 @@ MainDb::MainDb (const shared_ptr<Core> &core) : AbstractDb(*new MainDbPrivate),
soci::use(curChatRoomId); soci::use(curChatRoomId);
if (eventLog->getType() == EventLog::Type::ConferenceTerminated) if (eventLog->getType() == EventLog::Type::ConferenceTerminated)
*session << "UPDATE chat_room SET flags = 0 WHERE id = :chatRoomId", soci::use(curChatRoomId); *session << "UPDATE chat_room SET flags = 1 WHERE id = :chatRoomId", soci::use(curChatRoomId);
} }
if (chatRoomId) if (chatRoomId)
......
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