From 3bb65d6ea385c7755c730de470ea124235d9f918 Mon Sep 17 00:00:00 2001 From: levlam Date: Fri, 19 Apr 2019 02:15:17 +0300 Subject: [PATCH] Fix getting of Great Minds by ID. GitOrigin-RevId: ca1a68ae5c3f2a0be8f0e3f0a80ee96ae7077004 --- td/telegram/StickersManager.cpp | 5 +++++ td/telegram/StickersManager.h | 1 + 2 files changed, 6 insertions(+) diff --git a/td/telegram/StickersManager.cpp b/td/telegram/StickersManager.cpp index b8817555f..b07a78235 100644 --- a/td/telegram/StickersManager.cpp +++ b/td/telegram/StickersManager.cpp @@ -1710,6 +1710,11 @@ void StickersManager::on_get_messages_sticker_set(int64 sticker_set_id, bool is_changed) { LOG(INFO) << "Receive sticker set " << to_string(set); + if (sticker_set_id == GREAT_MINDS_SET_ID && set->set_->id_ == GREAT_MINDS_COLOR_SET_ID) { + set->set_->id_ = GREAT_MINDS_SET_ID; + set->set_->short_name_ = "TelegramGreatMinds"; + } + auto set_id = on_get_sticker_set(std::move(set->set_), is_changed); if (set_id == 0) { return; diff --git a/td/telegram/StickersManager.h b/td/telegram/StickersManager.h index d9b72b90b..165286088 100644 --- a/td/telegram/StickersManager.h +++ b/td/telegram/StickersManager.h @@ -244,6 +244,7 @@ class StickersManager : public Actor { static constexpr size_t MAX_STICKER_SET_SHORT_NAME_LENGTH = 64; // server side limit static constexpr int64 GREAT_MINDS_SET_ID = 1842540969984001; + static constexpr int64 GREAT_MINDS_COLOR_SET_ID = 151353307481243663; class Sticker { public: