Fix getting of Great Minds by ID.

GitOrigin-RevId: ca1a68ae5c3f2a0be8f0e3f0a80ee96ae7077004
This commit is contained in:
levlam 2019-04-19 02:15:17 +03:00
parent 896e44ac94
commit 3bb65d6ea3
2 changed files with 6 additions and 0 deletions

View File

@ -1710,6 +1710,11 @@ void StickersManager::on_get_messages_sticker_set(int64 sticker_set_id,
bool is_changed) { bool is_changed) {
LOG(INFO) << "Receive sticker set " << to_string(set); 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); auto set_id = on_get_sticker_set(std::move(set->set_), is_changed);
if (set_id == 0) { if (set_id == 0) {
return; return;

View File

@ -244,6 +244,7 @@ class StickersManager : public Actor {
static constexpr size_t MAX_STICKER_SET_SHORT_NAME_LENGTH = 64; // server side limit 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_SET_ID = 1842540969984001;
static constexpr int64 GREAT_MINDS_COLOR_SET_ID = 151353307481243663;
class Sticker { class Sticker {
public: public: