2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Don't use MTP* for WallPaper flags.

This commit is contained in:
John Preston
2021-08-12 12:32:30 +03:00
parent 474a6a71d9
commit 85cc3b30a0
8 changed files with 321 additions and 136 deletions

View File

@@ -1213,7 +1213,7 @@ void MainWidget::setReadyChatBackground(
const auto resetToDefault = image.isNull()
&& !background.document()
&& !background.backgroundColor()
&& background.backgroundColors().empty()
&& !Data::IsLegacy1DefaultWallPaper(background);
const auto ready = resetToDefault
? Data::DefaultWallPaper()