From e96e8a45f879a503bbaae4409193566d49ff212a Mon Sep 17 00:00:00 2001 From: levlam Date: Mon, 14 Sep 2020 12:48:10 +0300 Subject: [PATCH] Increase message cache time to 30 minutes for bots. GitOrigin-RevId: ef7a6833d62ce356012aba043c526199a200717d --- td/telegram/MessagesManager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/td/telegram/MessagesManager.cpp b/td/telegram/MessagesManager.cpp index 2ea2b7317..28fa32b5d 100644 --- a/td/telegram/MessagesManager.cpp +++ b/td/telegram/MessagesManager.cpp @@ -9876,8 +9876,8 @@ void MessagesManager::delete_all_channel_messages_from_user_on_server(ChannelId } int32 MessagesManager::get_unload_dialog_delay() const { - constexpr int32 DIALOG_UNLOAD_DELAY = 60; // seconds - constexpr int32 DIALOG_UNLOAD_BOT_DELAY = 600; // seconds + constexpr int32 DIALOG_UNLOAD_DELAY = 60; // seconds + constexpr int32 DIALOG_UNLOAD_BOT_DELAY = 1800; // seconds return td_->auth_manager_->is_bot() ? DIALOG_UNLOAD_BOT_DELAY : DIALOG_UNLOAD_DELAY; }