Update API scheme on layer 214.

This commit is contained in:
John Preston
2025-08-28 16:53:32 +04:00
parent 4419ba55e8
commit d51944e6a5
3 changed files with 5 additions and 7 deletions
+1 -5
View File
@@ -653,11 +653,7 @@ bool DocumentData::checkWallPaperProperties() {
if (type == WallPaperDocument) {
return true;
}
if (hasMimeType(u"application/x-tgwallpattern"_q)
&& dimensions.isEmpty()) {
dimensions = QSize(1125, 2313);
AssertIsDebug();
} else if (type != FileDocument
if (type != FileDocument
|| !hasThumbnail()
|| dimensions.isEmpty()
|| dimensions.width() > Storage::kMaxWallPaperDimension