Fix build

This commit is contained in:
Ali
2023-11-14 17:05:00 +04:00
parent 0a01a6fae3
commit fb22bac6ae
3 changed files with 3 additions and 3 deletions

View File

@@ -175,7 +175,7 @@ final class ThemeAccentColorController: ViewController {
}
if case let .peer(peer) = strongSelf.resultMode {
let _ = strongSelf.context.engine.themes.setChatWallpaper(peerId: peer.id, wallpaper: coloredWallpaper).start()
let _ = strongSelf.context.engine.themes.setChatWallpaper(peerId: peer.id, wallpaper: coloredWallpaper, forBoth: false).start()
strongSelf.completion?()
return
}

View File

@@ -159,7 +159,7 @@ final class ThemeColorsGridControllerNode: ASDisplayNode {
controller.navigationPresentation = .modal
controller.apply = { [weak self] wallpaper, _, _, _, _, _ in
if let strongSelf = self, let mode = strongSelf.controller?.mode, case let .peer(peer) = mode, case let .wallpaper(wallpaperValue, _) = wallpaper {
let _ = (strongSelf.context.engine.themes.setChatWallpaper(peerId: peer.id, wallpaper: wallpaperValue)
let _ = (strongSelf.context.engine.themes.setChatWallpaper(peerId: peer.id, wallpaper: wallpaperValue, forBoth: false)
|> deliverOnMainQueue).start(completed: {
dismissControllers()
})

View File

@@ -18284,7 +18284,7 @@ public final class ChatControllerImpl: TelegramBaseController, ChatController, G
guard let strongSelf = self, let peerId else {
return
}
let _ = strongSelf.context.engine.themes.setChatWallpaper(peerId: peerId, wallpaper: nil).startStandalone()
let _ = strongSelf.context.engine.themes.setChatWallpaper(peerId: peerId, wallpaper: nil, forBoth: false).startStandalone()
},
completion: { [weak self] emoticon in
guard let strongSelf = self, let peerId else {