From 580530b6d49c9f53d98e1c4b75b15ac7224076bd Mon Sep 17 00:00:00 2001 From: levlam Date: Thu, 2 Jan 2020 18:41:42 +0300 Subject: [PATCH] Allow to change StickerSet.is_animated. GitOrigin-RevId: bf712a9e6f90e26b53e710c62a119ee1ec4340bd --- td/telegram/StickersManager.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/td/telegram/StickersManager.cpp b/td/telegram/StickersManager.cpp index 782799b1..9c02eaa4 100644 --- a/td/telegram/StickersManager.cpp +++ b/td/telegram/StickersManager.cpp @@ -1894,9 +1894,12 @@ StickerSetId StickersManager::on_get_sticker_set(tl_object_ptris_official = is_official; s->is_changed = true; } - LOG_IF(ERROR, s->is_animated != is_animated) - << "Animated type of " << set_id << "/" << s->short_name << " has changed from " << s->is_animated << " to " - << is_animated << " from " << source; + if (s->is_animated != is_animated) { + LOG(ERROR) << "Animated type of " << set_id << "/" << s->short_name << " has changed from " << s->is_animated + << " to " << is_animated << " from " << source; + s->is_animated = is_animated; + s->is_changed = true; + } LOG_IF(ERROR, s->is_masks != is_masks) << "Masks type of " << set_id << "/" << s->short_name << " has changed from " << s->is_masks << " to " << is_masks << " from " << source; }