From faa7c1ca55e5a4b485fd339cc618b4da8d1749fa Mon Sep 17 00:00:00 2001 From: 23rd <23rd@vivaldi.net> Date: Mon, 13 Apr 2026 10:32:18 +0300 Subject: [PATCH] Fixed spoiler menu entry display for non-media files in send files box. --- Telegram/SourceFiles/boxes/send_files_box.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/boxes/send_files_box.cpp b/Telegram/SourceFiles/boxes/send_files_box.cpp index 3aea786574..2b1eb7085f 100644 --- a/Telegram/SourceFiles/boxes/send_files_box.cpp +++ b/Telegram/SourceFiles/boxes/send_files_box.cpp @@ -1486,7 +1486,9 @@ void SendFilesBox::pushBlock(int from, int till) { &st::menuIconCaptionShow); } const auto canToggleSpoiler = !hasPrice() - && _sendWay.current().sendImagesAsPhotos(); + && _sendWay.current().sendImagesAsPhotos() + && (file.type == Ui::PreparedFile::Type::Photo + || file.type == Ui::PreparedFile::Type::Video); if (canToggleSpoiler) { const auto spoilered = file.spoiler; const auto &icons = _st.tabbed.icons;