mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
@@ -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;
|
||||
|
Reference in New Issue
Block a user