From 1685d77455d83817082d289dcd8bcfc9463f26b2 Mon Sep 17 00:00:00 2001 From: levlam Date: Thu, 8 Aug 2019 18:37:16 +0300 Subject: [PATCH] One more transaction. GitOrigin-RevId: fde1d2448aad24ee0487377e353b6bc3f0fca240 --- td/telegram/MessagesManager.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/td/telegram/MessagesManager.cpp b/td/telegram/MessagesManager.cpp index fa9cccf34..b663b08ec 100644 --- a/td/telegram/MessagesManager.cpp +++ b/td/telegram/MessagesManager.cpp @@ -19297,6 +19297,7 @@ vector MessagesManager::get_message_notification_group_key VLOG(notifications) << "Trying to load " << limit << " message notification groups from database from " << from_group_key; + G()->td_db()->get_dialog_db_sync()->begin_transaction().ensure(); Result> r_notification_group_keys = G()->td_db()->get_dialog_db_sync()->get_notification_groups_by_last_notification_date(from_group_key, limit); r_notification_group_keys.ensure(); @@ -19317,6 +19318,7 @@ vector MessagesManager::get_message_notification_group_key VLOG(notifications) << "Loaded " << group_key << " from database"; result.push_back(group_key); } + G()->td_db()->get_dialog_db_sync()->commit_transaction().ensure(); return result; }