2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Allow many previews in SendFilesBox.

This commit is contained in:
John Preston
2020-10-16 10:52:55 +03:00
parent 8d2fa313b7
commit 202534575b
16 changed files with 286 additions and 226 deletions

View File

@@ -689,7 +689,7 @@ bool EditCaptionBox::fileFromClipboard(not_null<const QMimeData*> data) {
}
const auto file = &list.files.front();
if (_isAlbum && (file->type == AlbumType::None)) {
if (_isAlbum && (file->type == AlbumType::File)) {
const auto imageAsDoc = [&] {
using Info = Ui::PreparedFileInformation;
const auto fileMedia = &file->information->media;