mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Moved searching of sticker mimes to single place.
This commit is contained in:
@@ -102,4 +102,9 @@ MimeType MimeTypeForData(const QByteArray &data) {
|
||||
return MimeType(QMimeDatabase().mimeTypeForData(data));
|
||||
}
|
||||
|
||||
bool IsMimeSticker(const QString &mime) {
|
||||
return mime == qsl("image/webp")
|
||||
|| mime == qsl("application/x-tgsticker");
|
||||
}
|
||||
|
||||
} // namespace Core
|
||||
|
@@ -39,4 +39,6 @@ MimeType MimeTypeForName(const QString &mime);
|
||||
MimeType MimeTypeForFile(const QFileInfo &file);
|
||||
MimeType MimeTypeForData(const QByteArray &data);
|
||||
|
||||
bool IsMimeSticker(const QString &mime);
|
||||
|
||||
} // namespace Core
|
||||
|
Reference in New Issue
Block a user