Increase message cache time to 30 minutes for bots.

GitOrigin-RevId: ef7a6833d62ce356012aba043c526199a200717d
This commit is contained in:
levlam 2020-09-14 12:48:10 +03:00
parent a74d02f412
commit e96e8a45f8

View File

@ -9877,7 +9877,7 @@ void MessagesManager::delete_all_channel_messages_from_user_on_server(ChannelId
int32 MessagesManager::get_unload_dialog_delay() const { int32 MessagesManager::get_unload_dialog_delay() const {
constexpr int32 DIALOG_UNLOAD_DELAY = 60; // seconds constexpr int32 DIALOG_UNLOAD_DELAY = 60; // seconds
constexpr int32 DIALOG_UNLOAD_BOT_DELAY = 600; // seconds constexpr int32 DIALOG_UNLOAD_BOT_DELAY = 1800; // seconds
return td_->auth_manager_->is_bot() ? DIALOG_UNLOAD_BOT_DELAY : DIALOG_UNLOAD_DELAY; return td_->auth_manager_->is_bot() ? DIALOG_UNLOAD_BOT_DELAY : DIALOG_UNLOAD_DELAY;
} }