mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 06:35:51 +00:00
[WIP] Business
This commit is contained in:
@@ -82,7 +82,7 @@ public final class ComponentHostView<EnvironmentType>: UIView {
|
||||
self.currentComponent = component
|
||||
self.currentContainerSize = containerSize
|
||||
|
||||
componentState._updated = { [weak self] transition in
|
||||
componentState._updated = { [weak self] transition, _ in
|
||||
guard let strongSelf = self else {
|
||||
return
|
||||
}
|
||||
@@ -208,11 +208,11 @@ public final class ComponentView<EnvironmentType> {
|
||||
self.currentComponent = component
|
||||
self.currentContainerSize = containerSize
|
||||
|
||||
componentState._updated = { [weak self] transition in
|
||||
componentState._updated = { [weak self] transition, isLocal in
|
||||
guard let strongSelf = self else {
|
||||
return
|
||||
}
|
||||
if let parentState = strongSelf.parentState {
|
||||
if !isLocal, let parentState = strongSelf.parentState {
|
||||
parentState.updated(transition: transition)
|
||||
} else {
|
||||
let _ = strongSelf._update(transition: transition, component: component, maybeEnvironment: {
|
||||
|
||||
Reference in New Issue
Block a user