Skip to content

Commit

Permalink
fix: remote custom wallpaper flags
Browse files Browse the repository at this point in the history
  • Loading branch information
omg-xtao committed Jan 24, 2024
1 parent d6a2090 commit ba8da2b
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,11 @@ public void loadWallPaperInfo() {
int count = data.readInt32(false);
for (int a = 0; a < count; a++) {
WallPaperInfo info = WallPaperInfo.deserialize(data);
if (info.wallPaper == null) {
continue;
}
info.wallPaper.flags |= 4;
info.wallPaper.settings = info.parseSettings();
wallPaperInfo.add(info);
wallpaperInfoMap.put(info.chatId, info);
}
Expand Down Expand Up @@ -135,6 +140,7 @@ private void loadWallPaperFromServer() {
wallpaper.id = 0;
wallpaper.isDefault = false;
wallpaper.dark = false;
wallpaper.flags |= 4;
wallpaper.settings = info.parseSettings();
info.flags |= 1;
info.wallPaper = wallpaper;
Expand All @@ -154,6 +160,7 @@ private void loadWallPaperFromServer() {
if (response instanceof TLRPC.TL_wallPaper) {
info.flags |= 1;
info.wallPaper = (TLRPC.WallPaper) response;
info.wallPaper.flags |= 4;
info.wallPaper.settings = info.parseSettings();
saveWallPaperInfo();
}
Expand Down

0 comments on commit ba8da2b

Please sign in to comment.