mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-07 15:43:55 +02:00
Fix sending images from clipboard.
Regression was introduced in ce1b94eb1
.
This commit is contained in:
parent
07f94cc184
commit
93a88b54ad
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ bool ValidPhotoForAlbum(
|
|||
const QString &mime) {
|
||||
if (image.animated
|
||||
|| Core::IsMimeSticker(mime)
|
||||
|| !mime.startsWith(u"image/")) {
|
||||
|| (!mime.isEmpty() && !mime.startsWith(u"image/"))) {
|
||||
return false;
|
||||
}
|
||||
const auto width = image.data.width();
|
||||
|
|
Loading…
Add table
Reference in a new issue