mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-02-20 23:27:23 +00:00
Fixed MIME checking for files when edit media.
This commit is contained in:
parent
456a949d01
commit
78227cd947
@ -343,11 +343,8 @@ void EditCaptionBox::updateEditPreview() {
|
||||
|
||||
const auto fileinfo = QFileInfo(file->path);
|
||||
const auto filename = fileinfo.fileName();
|
||||
const auto mimeType = Core::MimeTypeForFile(fileinfo).name();
|
||||
|
||||
if (!file->path.isEmpty()) {
|
||||
_isImage = fileIsImage(filename, mimeType);
|
||||
}
|
||||
_isImage = fileIsImage(filename, file->mime);
|
||||
_isAudio = false;
|
||||
_animated = false;
|
||||
_photo = false;
|
||||
|
Loading…
Reference in New Issue
Block a user