diff --git a/td/telegram/StickersManager.cpp b/td/telegram/StickersManager.cpp index b8a47477d..f59627821 100644 --- a/td/telegram/StickersManager.cpp +++ b/td/telegram/StickersManager.cpp @@ -5029,9 +5029,10 @@ void StickersManager::on_uploaded_sticker_file(FileId file_id, tl_object_ptrdocuments_manager_->merge_documents(parsed_document.file_id, file_id, true); + // must not delete the old document, because the file_id could be used for simultaneous URL uploads + td_->documents_manager_->merge_documents(parsed_document.file_id, file_id, false); } promise.set_value(Unit()); }