Commit 76c5214a authored by Ghislain MARY's avatar Ghislain MARY
Browse files

Fix markChatMessagesAsRead().

parent d6d9e399
......@@ -2084,6 +2084,7 @@ void MainDb::markChatMessagesAsRead (const ChatRoomId &chatRoomId) const {
soci::transaction tr(*session);
const long long &dbChatRoomId = d->selectChatRoomId(chatRoomId);
*session << query, soci::use(dbChatRoomId);
tr.commit();
}
return 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