From 19507a7f7a0421f6947e077f322b80b955bb1a2f Mon Sep 17 00:00:00 2001 From: levlam Date: Thu, 30 Jul 2020 23:49:46 +0300 Subject: [PATCH] Decrease sticker set cache time. GitOrigin-RevId: dec22463f0411888a6e2a3eddc95ab1a6ccf3b0d --- td/telegram/StickersManager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/td/telegram/StickersManager.cpp b/td/telegram/StickersManager.cpp index 56f1cd35f..17ed81d7f 100644 --- a/td/telegram/StickersManager.cpp +++ b/td/telegram/StickersManager.cpp @@ -2301,8 +2301,8 @@ StickerSetId StickersManager::on_get_messages_sticker_set(StickerSetId sticker_s CHECK(s != nullptr); CHECK(s->is_inited); - s->expires_at = G()->unix_time() + (td_->auth_manager_->is_bot() ? Random::fast(10 * 60, 15 * 60) - : Random::fast(20 * 60 * 60, 28 * 60 * 60)); + s->expires_at = G()->unix_time() + + (td_->auth_manager_->is_bot() ? Random::fast(10 * 60, 15 * 60) : Random::fast(30 * 60, 50 * 60)); if (s->is_loaded) { update_sticker_set(s);