Do not add animations with stickers to saved animations automatically.

GitOrigin-RevId: c3220224c091ce59fadc519634d6a73933ed3a32
This commit is contained in:
levlam 2020-06-05 07:26:26 +03:00
parent e14601e878
commit 8e084a5b43

View File

@ -729,6 +729,12 @@ void AnimationsManager::send_save_gif_query(FileId animation_id, bool unsave, Pr
}
void AnimationsManager::add_saved_animation_by_id(FileId animation_id) {
auto animation = get_animation(animation_id);
CHECK(animation != nullptr);
if (animation->has_stickers) {
return;
}
// TODO log event
add_saved_animation_impl(animation_id, false, Auto());
}