From 670a42885a3d0d5b5c2758816df5391b01d20259 Mon Sep 17 00:00:00 2001 From: levlam Date: Tue, 21 Feb 2023 21:53:58 +0300 Subject: [PATCH] Fix sticker set deletion. --- td/telegram/StickersManager.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/td/telegram/StickersManager.cpp b/td/telegram/StickersManager.cpp index 13ad84faf..4f3b48122 100644 --- a/td/telegram/StickersManager.cpp +++ b/td/telegram/StickersManager.cpp @@ -1329,6 +1329,7 @@ class DeleteStickerSetQuery final : public Td::ResultHandler { } void send(const string &short_name) { + short_name_ = short_name; send_query(G()->net_query_creator().create( telegram_api::stickers_deleteStickerSet(make_tl_object(short_name)), {{short_name}})); @@ -4061,6 +4062,7 @@ void StickersManager::on_load_sticker_set_fail(StickerSetId sticker_set_id, cons void StickersManager::on_sticker_set_deleted(const string &short_name) { // clear short_name_to_sticker_set_id_ to allow next searchStickerSet request to succeed + LOG(INFO) << "Remove information about deleted sticker set " << short_name; short_name_to_sticker_set_id_.erase(clean_username(short_name)); }