Various fixes

This commit is contained in:
Ilya Laktyushin 2023-09-16 00:07:56 +04:00
parent 6f75478d99
commit 5716591030

View File

@ -6353,6 +6353,13 @@ public final class StoryItemSetContainerComponent: Component {
return
}
let _ = (ApplicationSpecificNotice.displayStoryUnmuteTooltip(accountManager: component.context.sharedContext.accountManager)
|> delay(0.3, queue: .mainQueue())
|> deliverOnMainQueue).start(next: { [weak self] value in
guard let self, let component = self.component else {
return
}
if !value {
let tooltipScreen = TooltipScreen(
account: component.context.account,
sharedContext: component.context.sharedContext,
@ -6364,6 +6371,8 @@ public final class StoryItemSetContainerComponent: Component {
let _ = ApplicationSpecificNotice.setDisplayStoryUnmuteTooltip(accountManager: component.context.sharedContext.accountManager).start()
}
})
}
func updateModalTransitionFactor(_ value: CGFloat, transition: ContainedViewLayoutTransition) {
guard let component = self.component, case .compact = component.metrics.widthClass else {