mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
Fixed ability to edit media with sticker.
Regression was introduced in efa4deef6a.
This commit is contained in:
@@ -322,9 +322,6 @@ std::optional<PreparedList> PreparedList::PreparedFileFromFilesDialog(
|
||||
auto filteredFiles = ranges::view::all(
|
||||
temp.files
|
||||
) | ranges::view::filter([&](const auto &file) {
|
||||
if (!isAlbum) {
|
||||
return true;
|
||||
}
|
||||
const auto info = QFileInfo(file.path);
|
||||
if (Core::IsMimeSticker(Core::MimeTypeForFile(info).name())) {
|
||||
if (isSingleFile) {
|
||||
@@ -332,6 +329,9 @@ std::optional<PreparedList> PreparedList::PreparedFileFromFilesDialog(
|
||||
}
|
||||
return false;
|
||||
}
|
||||
if (!isAlbum) {
|
||||
return true;
|
||||
}
|
||||
using Info = FileMediaInformation;
|
||||
|
||||
const auto media = &file.information->media;
|
||||
|
||||
Reference in New Issue
Block a user