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

Add a way to recreate SendFilesBox content.

This commit is contained in:
John Preston
2020-10-16 13:38:12 +03:00
parent 202534575b
commit 0539cc9448
11 changed files with 217 additions and 155 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::File)) {
if (_isAlbum && (file->type == AlbumType::File || file->type == AlbumType::None)) {
const auto imageAsDoc = [&] {
using Info = Ui::PreparedFileInformation;
const auto fileMedia = &file->information->media;