mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-29 05:37:45 +00:00
Fix sending .tgs files as stickers.
Regression was introduced in 3467fe226f.
This commit is contained in:
parent
7f3ebde252
commit
6e08b00dba
@ -901,11 +901,11 @@ void FileLoadTask::process(Args &&args) {
|
||||
attributes.push_back(MTP_documentAttributeImageSize(MTP_int(w), MTP_int(h)));
|
||||
|
||||
if (ValidateThumbDimensions(w, h)) {
|
||||
isSticker = (_type == SendMediaType::File)
|
||||
&& Core::IsMimeSticker(filemime)
|
||||
isSticker = Core::IsMimeSticker(filemime)
|
||||
&& (filesize < Storage::kMaxStickerBytesSize)
|
||||
&& (Core::IsMimeStickerAnimated(filemime)
|
||||
|| GoodStickerDimensions(w, h));
|
||||
|| (_type == SendMediaType::File
|
||||
&& GoodStickerDimensions(w, h)));
|
||||
if (isSticker) {
|
||||
attributes.push_back(MTP_documentAttributeSticker(
|
||||
MTP_flags(0),
|
||||
|
Loading…
x
Reference in New Issue
Block a user