Do not warn on animated sticker size changes.
GitOrigin-RevId: 256c201cb91e2ee99f23abd2464cc586a27d66c5
This commit is contained in:
parent
76558f0802
commit
c5b7a92e78
@ -1518,7 +1518,8 @@ bool StickersManager::merge_stickers(FileId new_id, FileId old_id, bool can_dele
|
|||||||
CHECK(new_ != nullptr);
|
CHECK(new_ != nullptr);
|
||||||
|
|
||||||
if (old_->alt != new_->alt || old_->set_id != new_->set_id ||
|
if (old_->alt != new_->alt || old_->set_id != new_->set_id ||
|
||||||
(old_->dimensions.width != 0 && old_->dimensions.height != 0 && old_->dimensions != new_->dimensions)) {
|
(!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
|
LOG(ERROR) << "Sticker has changed: alt = (" << old_->alt << ", " << new_->alt << "), set_id = (" << old_->set_id
|
||||||
<< ", " << new_->set_id << "), dimensions = (" << old_->dimensions << ", " << new_->dimensions << ")";
|
<< ", " << new_->set_id << "), dimensions = (" << old_->dimensions << ", " << new_->dimensions << ")";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user