mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2026-01-06 13:12:49 +00:00
Fix editing panel
This commit is contained in:
@@ -499,6 +499,8 @@ public final class PeerListItemComponent: Component {
|
||||
} else {
|
||||
clipStyle = .round
|
||||
}
|
||||
let _ = clipStyle
|
||||
let _ = synchronousLoad
|
||||
self.avatarNode.setPeer(context: component.context, theme: component.theme, peer: peer, clipStyle: clipStyle, synchronousLoad: synchronousLoad, displayDimensions: CGSize(width: avatarSize, height: avatarSize))
|
||||
self.avatarNode.setStoryStats(storyStats: component.storyStats.flatMap { storyStats -> AvatarNode.StoryStats in
|
||||
return AvatarNode.StoryStats(
|
||||
|
||||
@@ -1163,7 +1163,7 @@ public final class StoryItemSetContainerComponent: Component {
|
||||
if let currentIndex = component.slice.allItems.firstIndex(where: { $0.storyItem.id == component.slice.item.storyItem.id }) {
|
||||
if index != currentIndex {
|
||||
let nextId = component.slice.allItems[index].storyItem.id
|
||||
self.awaitingSwitchToId = (component.slice.allItems[currentIndex].storyItem.id, nextId)
|
||||
//self.awaitingSwitchToId = (component.slice.allItems[currentIndex].storyItem.id, nextId)
|
||||
component.navigate(.id(nextId))
|
||||
}
|
||||
}
|
||||
@@ -1603,7 +1603,13 @@ public final class StoryItemSetContainerComponent: Component {
|
||||
|
||||
let footerPanelFrame = CGRect(origin: CGPoint(x: itemPositionX - footerSize.width * 0.5, y: footerPanelY), size: footerSize)
|
||||
itemTransition.setFrame(view: footerPanelView, frame: footerPanelFrame)
|
||||
itemTransition.setAlpha(view: footerPanelView, alpha: 1.0 - itemLayout.contentOverflowFraction)
|
||||
|
||||
var footerAlpha: CGFloat = 1.0 - itemLayout.contentOverflowFraction
|
||||
if component.hideUI || self.isEditingStory {
|
||||
footerAlpha = 0.0
|
||||
}
|
||||
|
||||
itemTransition.setAlpha(view: footerPanelView, alpha: footerAlpha)
|
||||
}
|
||||
} else if let footerPanel = visibleItem.footerPanel {
|
||||
visibleItem.footerPanel = nil
|
||||
|
||||
Reference in New Issue
Block a user