mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Various fixes
This commit is contained in:
@@ -113,6 +113,7 @@ public final class EntityKeyboardComponent: Component {
|
||||
public let inputHeight: CGFloat
|
||||
public let displayBottomPanel: Bool
|
||||
public let isExpanded: Bool
|
||||
public let clipContentToTopPanel: Bool
|
||||
|
||||
public init(
|
||||
theme: PresentationTheme,
|
||||
@@ -141,7 +142,8 @@ public final class EntityKeyboardComponent: Component {
|
||||
hiddenInputHeight: CGFloat,
|
||||
inputHeight: CGFloat,
|
||||
displayBottomPanel: Bool,
|
||||
isExpanded: Bool
|
||||
isExpanded: Bool,
|
||||
clipContentToTopPanel: Bool
|
||||
) {
|
||||
self.theme = theme
|
||||
self.strings = strings
|
||||
@@ -170,6 +172,7 @@ public final class EntityKeyboardComponent: Component {
|
||||
self.inputHeight = inputHeight
|
||||
self.displayBottomPanel = displayBottomPanel
|
||||
self.isExpanded = isExpanded
|
||||
self.clipContentToTopPanel = clipContentToTopPanel
|
||||
}
|
||||
|
||||
public static func ==(lhs: EntityKeyboardComponent, rhs: EntityKeyboardComponent) -> Bool {
|
||||
@@ -230,6 +233,9 @@ public final class EntityKeyboardComponent: Component {
|
||||
if lhs.isExpanded != rhs.isExpanded {
|
||||
return false
|
||||
}
|
||||
if lhs.clipContentToTopPanel != rhs.clipContentToTopPanel {
|
||||
return false
|
||||
}
|
||||
|
||||
return true
|
||||
}
|
||||
@@ -738,7 +744,8 @@ public final class EntityKeyboardComponent: Component {
|
||||
}
|
||||
strongSelf.isTopPanelHiddenUpdated(isTopPanelHidden: isTopPanelHidden, transition: transition)
|
||||
},
|
||||
panelHideBehavior: panelHideBehavior
|
||||
panelHideBehavior: panelHideBehavior,
|
||||
clipContentToTopPanel: component.clipContentToTopPanel
|
||||
)),
|
||||
environment: {
|
||||
EntityKeyboardChildEnvironment(
|
||||
|
||||
Reference in New Issue
Block a user