mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-04-04 15:34:58 +00:00
Fixed display SendFilesBox via historyAttach button.
This commit is contained in:
parent
d9a14e1227
commit
a0926f2d70
@ -3057,11 +3057,7 @@ void HistoryWidget::chooseAttach() {
|
|||||||
auto list = Storage::PrepareMediaList(
|
auto list = Storage::PrepareMediaList(
|
||||||
result.paths,
|
result.paths,
|
||||||
st::sendMediaPreviewSize);
|
st::sendMediaPreviewSize);
|
||||||
if (list.allFilesForCompress || list.albumIsPossible) {
|
|
||||||
confirmSendingFiles(std::move(list), CompressConfirm::Auto);
|
confirmSendingFiles(std::move(list), CompressConfirm::Auto);
|
||||||
} else if (!showSendingFilesError(list)) {
|
|
||||||
uploadFiles(std::move(list), SendMediaType::File);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user