From dbcbacea9a107478e31de30ac2b8f91712a28e07 Mon Sep 17 00:00:00 2001 From: levlam Date: Mon, 1 Oct 2018 14:34:42 +0300 Subject: [PATCH] Fix getAttachedStickerSets for photos. GitOrigin-RevId: a96584c9cc797f7e15d850af0a5c4c5d73b3d1ac --- td/telegram/StickersManager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/td/telegram/StickersManager.cpp b/td/telegram/StickersManager.cpp index 4fc02f7cc..4c43351c3 100644 --- a/td/telegram/StickersManager.cpp +++ b/td/telegram/StickersManager.cpp @@ -2884,7 +2884,8 @@ vector StickersManager::get_attached_sticker_sets(FileId file_id, Promise promise.set_error(Status::Error(5, "File not found")); return {}; } - if (!file_view.has_remote_location() || !file_view.remote_location().is_document() || + if (!file_view.has_remote_location() || + (!file_view.remote_location().is_document() && !file_view.remote_location().is_photo()) || file_view.remote_location().is_web()) { promise.set_value(Unit()); return {};