2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-30 22:25:12 +00:00

Fix sticker inline bot results.

Fixes #3317.
This commit is contained in:
John Preston
2018-06-03 20:48:00 +03:00
parent e62e7d1de2
commit 2bd8737410
6 changed files with 24 additions and 15 deletions

View File

@@ -1094,6 +1094,11 @@ void DocumentData::recountIsImage() {
_duration = fileIsImage(filename(), mimeString()) ? 1 : -1; // hack
}
bool DocumentData::hasGoodStickerThumb() const {
return !thumb->isNull()
&& ((thumb->width() >= 128) || (thumb->height() >= 128));
}
bool DocumentData::setRemoteVersion(int32 version) {
if (_version == version) {
return false;