mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Fix build
This commit is contained in:
@@ -175,7 +175,7 @@ final class ThemeAccentColorController: ViewController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if case let .peer(peer) = strongSelf.resultMode {
|
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?()
|
strongSelf.completion?()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -159,7 +159,7 @@ final class ThemeColorsGridControllerNode: ASDisplayNode {
|
|||||||
controller.navigationPresentation = .modal
|
controller.navigationPresentation = .modal
|
||||||
controller.apply = { [weak self] wallpaper, _, _, _, _, _ in
|
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 {
|
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: {
|
|> deliverOnMainQueue).start(completed: {
|
||||||
dismissControllers()
|
dismissControllers()
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -18284,7 +18284,7 @@ public final class ChatControllerImpl: TelegramBaseController, ChatController, G
|
|||||||
guard let strongSelf = self, let peerId else {
|
guard let strongSelf = self, let peerId else {
|
||||||
return
|
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
|
completion: { [weak self] emoticon in
|
||||||
guard let strongSelf = self, let peerId else {
|
guard let strongSelf = self, let peerId else {
|
||||||
|
|||||||
Reference in New Issue
Block a user