diff --git a/td/telegram/StickersManager.cpp b/td/telegram/StickersManager.cpp index a422c2c0..e9163a53 100644 --- a/td/telegram/StickersManager.cpp +++ b/td/telegram/StickersManager.cpp @@ -1774,9 +1774,9 @@ bool StickersManager::merge_stickers(FileId new_id, FileId old_id, bool can_dele Sticker *new_ = new_it->second.get(); CHECK(new_ != nullptr); - if (old_->alt != new_->alt || old_->set_id != new_->set_id || - (!old_->is_animated && !new_->is_animated && old_->dimensions.width != 0 && old_->dimensions.height != 0 && - old_->dimensions != new_->dimensions)) { + if (old_->set_id == new_->set_id && (old_->alt != new_->alt || old_->set_id != new_->set_id || + (!old_->is_animated && !new_->is_animated && old_->dimensions.width != 0 && + old_->dimensions.height != 0 && old_->dimensions != new_->dimensions))) { LOG(ERROR) << "Sticker has changed: alt = (" << old_->alt << ", " << new_->alt << "), set_id = (" << old_->set_id << ", " << new_->set_id << "), dimensions = (" << old_->dimensions << ", " << new_->dimensions << ")"; }