mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02: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) {
|
||||
if (image.animated
|
||||
|| Core::IsMimeSticker(mime)
|
||||
|| !mime.startsWith(u"image/")) {
|
||||
|| (!mime.isEmpty() && !mime.startsWith(u"image/"))) {
|
||||
return false;
|
||||
}
|
||||
const auto width = image.data.width();
|
||||
|
||||
Reference in New Issue
Block a user