mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Fixed spoiler menu entry display for non-media files in send files box.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user