Don't rely on MTP* when sending photos.
This commit is contained in:
parent
3698396677
commit
54f467eb47
|
@ -974,7 +974,7 @@ void FileLoadTask::process(Args &&args) {
|
||||||
filesize,
|
filesize,
|
||||||
isSticker);
|
isSticker);
|
||||||
|
|
||||||
if (_type == SendMediaType::Photo && photo.type() == mtpc_photoEmpty) {
|
if (_type == SendMediaType::Photo && photoThumbs.empty()) {
|
||||||
_type = SendMediaType::File;
|
_type = SendMediaType::File;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue