mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
Add support for gzip-ed animated stickers.
This commit is contained in:
@@ -554,7 +554,8 @@ void DocumentData::setattributes(
|
||||
|
||||
void DocumentData::validateLottieSticker() {
|
||||
if (type == FileDocument
|
||||
&& (_filename == qstr("animation.json")
|
||||
&& (_filename.endsWith(qstr(".tgs"))
|
||||
|| _filename == qstr("animation.json")
|
||||
|| ((_filename.size() == 9 || _filename.size() == 10)
|
||||
&& _filename.endsWith(qstr(".json"))
|
||||
&& QRegularExpression("^\\d+\\.json$").match(_filename).hasMatch()))) {
|
||||
|
Reference in New Issue
Block a user