mirror of
https://github.com/vale981/tdesktop
synced 2025-03-06 02:01:40 -05:00
View some more files as stickers.
This commit is contained in:
parent
642deecbbb
commit
61b6effccc
1 changed files with 5 additions and 1 deletions
|
@ -553,7 +553,11 @@ void DocumentData::setattributes(
|
|||
}
|
||||
|
||||
void DocumentData::validateLottieSticker() {
|
||||
if (type == FileDocument && _filename == qstr("animation.json")) {
|
||||
if (type == FileDocument
|
||||
&& (_filename == qstr("animation.json")
|
||||
|| ((_filename.size() == 9 || _filename.size() == 10)
|
||||
&& _filename.endsWith(qstr(".json"))
|
||||
&& QRegularExpression("^\\d+\\.json$").match(_filename).hasMatch()))) {
|
||||
type = StickerDocument;
|
||||
_additional = std::make_unique<StickerData>();
|
||||
dimensions = QSize(512, 512);
|
||||
|
|
Loading…
Add table
Reference in a new issue