Don't rely on MTP* when sending photos.

This commit is contained in:
John Preston 2022-08-10 20:10:48 +03:00
parent 3698396677
commit 54f467eb47
1 changed files with 1 additions and 1 deletions

View File

@ -974,7 +974,7 @@ void FileLoadTask::process(Args &&args) {
filesize,
isSticker);
if (_type == SendMediaType::Photo && photo.type() == mtpc_photoEmpty) {
if (_type == SendMediaType::Photo && photoThumbs.empty()) {
_type = SendMediaType::File;
}