2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Update API scheme on layer 107.

This commit is contained in:
John Preston
2019-12-29 14:41:10 +03:00
parent d47c138f23
commit 66204bae95
8 changed files with 49 additions and 20 deletions

View File

@@ -587,8 +587,9 @@ bool DocumentData::checkWallPaperProperties() {
|| !dimensions.height()
|| dimensions.width() > Storage::kMaxWallPaperDimension
|| dimensions.height() > Storage::kMaxWallPaperDimension
|| size > Storage::kMaxWallPaperInMemory) {
return false;
|| size > Storage::kMaxWallPaperInMemory
|| mimeString() == qstr("application/x-tgwallpattern")) {
return false; // #TODO themes support svg patterns
}
type = WallPaperDocument;
validateGoodThumbnail();