mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-30 01:08:02 +00:00
Update API scheme on layer 214.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user