mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Various fixes
This commit is contained in:
parent
2c4dd3d411
commit
69fda4b94e
@ -818,7 +818,7 @@ private func channelVisibilityControllerEntries(presentationData: PresentationDa
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if isGroup {
|
if isGroup && selectedType == .publicChannel {
|
||||||
var isDiscussion = false
|
var isDiscussion = false
|
||||||
if let cachedData = view.cachedData as? CachedChannelData, case .known = cachedData.linkedDiscussionPeerId {
|
if let cachedData = view.cachedData as? CachedChannelData, case .known = cachedData.linkedDiscussionPeerId {
|
||||||
isDiscussion = true
|
isDiscussion = true
|
||||||
|
@ -210,7 +210,7 @@ public class BoxedMessage: NSObject {
|
|||||||
|
|
||||||
public class Serialization: NSObject, MTSerialization {
|
public class Serialization: NSObject, MTSerialization {
|
||||||
public func currentLayer() -> UInt {
|
public func currentLayer() -> UInt {
|
||||||
return 141
|
return 142
|
||||||
}
|
}
|
||||||
|
|
||||||
public func parseMessage(_ data: Data!) -> Any! {
|
public func parseMessage(_ data: Data!) -> Any! {
|
||||||
|
@ -2813,7 +2813,7 @@ private final class MenuIconNode: ManagedAnimationNode {
|
|||||||
switch state {
|
switch state {
|
||||||
case .menu:
|
case .menu:
|
||||||
if animated {
|
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 {
|
} else {
|
||||||
self.trackTo(item: ManagedAnimationItem(source: .local("anim_menuclose"), frames: .range(startFrame: 0, endFrame: 0), duration: 0.01))
|
self.trackTo(item: ManagedAnimationItem(source: .local("anim_menuclose"), frames: .range(startFrame: 0, endFrame: 0), duration: 0.01))
|
||||||
}
|
}
|
||||||
|
@ -504,7 +504,7 @@ public final class WebAppController: ViewController, AttachmentContainable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private func sendThemeChangedEvent() {
|
private func sendThemeChangedEvent() {
|
||||||
let themeParams = generateWebAppThemeParams(presentationData.theme)
|
let themeParams = generateWebAppThemeParams(self.presentationData.theme)
|
||||||
var themeParamsString = "{theme_params: {"
|
var themeParamsString = "{theme_params: {"
|
||||||
for (key, value) in themeParams {
|
for (key, value) in themeParams {
|
||||||
if let value = value as? Int32 {
|
if let value = value as? Int32 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user