Update API

This commit is contained in:
Ilya Laktyushin
2025-08-25 17:23:25 +04:00
parent 1d20927877
commit cb1f5058a7
33 changed files with 1605 additions and 1169 deletions

View File

@@ -186,7 +186,7 @@ extension ChatControllerImpl {
self.contentDataUpdated(synchronous: true, forceAnimation: forceAnimation, previousState: contentData.state)
self.chatThemeEmoticonPromise.set(contentData.chatThemeEmoticonPromise.get())
self.chatThemePromise.set(contentData.chatThemePromise.get())
self.chatWallpaperPromise.set(contentData.chatWallpaperPromise.get())
if let historyNode {
@@ -844,12 +844,12 @@ extension ChatControllerImpl {
}
if let peerId = self.chatLocation.peerId {
self.chatThemeEmoticonPromise.set(self.context.engine.data.get(TelegramEngine.EngineData.Item.Peer.ThemeEmoticon(id: peerId)))
self.chatThemePromise.set(self.context.engine.data.get(TelegramEngine.EngineData.Item.Peer.ChatTheme(id: peerId)))
let chatWallpaper = self.context.engine.data.get(TelegramEngine.EngineData.Item.Peer.Wallpaper(id: peerId))
|> take(1)
self.chatWallpaperPromise.set(chatWallpaper)
} else {
self.chatThemeEmoticonPromise.set(.single(nil))
self.chatThemePromise.set(.single(nil))
self.chatWallpaperPromise.set(.single(nil))
}