From 69fda4b94e23ba3ffbe586297cb412895b7d87e4 Mon Sep 17 00:00:00 2001 From: Ilya Laktyushin Date: Sun, 17 Apr 2022 14:14:12 +0400 Subject: [PATCH] Various fixes --- submodules/PeerInfoUI/Sources/ChannelVisibilityController.swift | 2 +- submodules/TelegramCore/Sources/State/Serialization.swift | 2 +- submodules/TelegramUI/Sources/ChatTextInputPanelNode.swift | 2 +- submodules/WebUI/Sources/WebAppController.swift | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/submodules/PeerInfoUI/Sources/ChannelVisibilityController.swift b/submodules/PeerInfoUI/Sources/ChannelVisibilityController.swift index 49309ad658..3f4fb21350 100644 --- a/submodules/PeerInfoUI/Sources/ChannelVisibilityController.swift +++ b/submodules/PeerInfoUI/Sources/ChannelVisibilityController.swift @@ -818,7 +818,7 @@ private func channelVisibilityControllerEntries(presentationData: PresentationDa } } - if isGroup { + if isGroup && selectedType == .publicChannel { var isDiscussion = false if let cachedData = view.cachedData as? CachedChannelData, case .known = cachedData.linkedDiscussionPeerId { isDiscussion = true diff --git a/submodules/TelegramCore/Sources/State/Serialization.swift b/submodules/TelegramCore/Sources/State/Serialization.swift index cee780af81..2a04777021 100644 --- a/submodules/TelegramCore/Sources/State/Serialization.swift +++ b/submodules/TelegramCore/Sources/State/Serialization.swift @@ -210,7 +210,7 @@ public class BoxedMessage: NSObject { public class Serialization: NSObject, MTSerialization { public func currentLayer() -> UInt { - return 141 + return 142 } public func parseMessage(_ data: Data!) -> Any! { diff --git a/submodules/TelegramUI/Sources/ChatTextInputPanelNode.swift b/submodules/TelegramUI/Sources/ChatTextInputPanelNode.swift index 5015b8c57d..7dc13565a4 100644 --- a/submodules/TelegramUI/Sources/ChatTextInputPanelNode.swift +++ b/submodules/TelegramUI/Sources/ChatTextInputPanelNode.swift @@ -2813,7 +2813,7 @@ private final class MenuIconNode: ManagedAnimationNode { switch state { case .menu: if animated { - self.trackTo(item: ManagedAnimationItem(source: .local("anim_menuclose"), frames: .range(startFrame: 20, endFrame: 0), duration: self.duration)) + self.trackTo(item: ManagedAnimationItem(source: .local("anim_closemenu"), frames: .range(startFrame: 0, endFrame: 20), duration: self.duration)) } else { self.trackTo(item: ManagedAnimationItem(source: .local("anim_menuclose"), frames: .range(startFrame: 0, endFrame: 0), duration: 0.01)) } diff --git a/submodules/WebUI/Sources/WebAppController.swift b/submodules/WebUI/Sources/WebAppController.swift index 6d3a522dc1..676cceda2d 100644 --- a/submodules/WebUI/Sources/WebAppController.swift +++ b/submodules/WebUI/Sources/WebAppController.swift @@ -504,7 +504,7 @@ public final class WebAppController: ViewController, AttachmentContainable { } private func sendThemeChangedEvent() { - let themeParams = generateWebAppThemeParams(presentationData.theme) + let themeParams = generateWebAppThemeParams(self.presentationData.theme) var themeParamsString = "{theme_params: {" for (key, value) in themeParams { if let value = value as? Int32 {