mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-02 07:35:12 +00:00
Fix sending images from clipboard.
Regression was introduced in ce1b94eb1
.
This commit is contained in:
@@ -40,7 +40,7 @@ bool ValidPhotoForAlbum(
|
|||||||
const QString &mime) {
|
const QString &mime) {
|
||||||
if (image.animated
|
if (image.animated
|
||||||
|| Core::IsMimeSticker(mime)
|
|| Core::IsMimeSticker(mime)
|
||||||
|| !mime.startsWith(u"image/")) {
|
|| (!mime.isEmpty() && !mime.startsWith(u"image/"))) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
const auto width = image.data.width();
|
const auto width = image.data.width();
|
||||||
|
Reference in New Issue
Block a user