mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Stories
This commit is contained in:
parent
f1a01e343b
commit
b6894b8081
@ -1423,7 +1423,7 @@ class ChatListItemNode: ItemListRevealOptionsItemNode {
|
||||
videoNode = current
|
||||
} else {
|
||||
videoNode = AvatarVideoNode(context: item.context)
|
||||
strongSelf.avatarNode.addSubnode(videoNode)
|
||||
strongSelf.avatarNode.contentNode.addSubnode(videoNode)
|
||||
strongSelf.avatarVideoNode = videoNode
|
||||
}
|
||||
videoNode.update(peer: peer, photo: photo, size: CGSize(width: 60.0, height: 60.0))
|
||||
|
@ -150,7 +150,7 @@ public final class ChatAvatarNavigationNode: ASDisplayNode {
|
||||
videoNode = current
|
||||
} else {
|
||||
videoNode = AvatarVideoNode(context: context)
|
||||
strongSelf.avatarNode.addSubnode(videoNode)
|
||||
strongSelf.avatarNode.contentNode.addSubnode(videoNode)
|
||||
strongSelf.avatarVideoNode = videoNode
|
||||
}
|
||||
videoNode.update(peer: peer, photo: photo, size: CGSize(width: 37.0, height: 37.0))
|
||||
|
@ -326,7 +326,7 @@ public final class ChatListNavigationBar: Component {
|
||||
|
||||
if offset <= -60.0 {
|
||||
storiesUnlocked = true
|
||||
} else if offset >= -56.0 {
|
||||
} else if offset >= -58.0 {
|
||||
storiesUnlocked = false
|
||||
} else {
|
||||
storiesUnlocked = self.storiesUnlocked
|
||||
|
@ -556,7 +556,7 @@ final class ChatMessageAvatarHeaderNode: ListViewItemHeaderNode {
|
||||
videoNode = current
|
||||
} else {
|
||||
videoNode = AvatarVideoNode(context: context)
|
||||
strongSelf.avatarNode.addSubnode(videoNode)
|
||||
strongSelf.avatarNode.contentNode.addSubnode(videoNode)
|
||||
strongSelf.avatarVideoNode = videoNode
|
||||
}
|
||||
videoNode.update(peer: EnginePeer(peer), photo: photo, size: CGSize(width: 38.0, height: 38.0))
|
||||
|
@ -712,7 +712,7 @@ final class PeerInfoAvatarTransformContainerNode: ASDisplayNode {
|
||||
shape.path = maskPath.cgPath
|
||||
videoNode.layer.mask = shape
|
||||
|
||||
self.containerNode.addSubnode(videoNode)
|
||||
self.avatarNode.contentNode.addSubnode(videoNode)
|
||||
}
|
||||
} else {
|
||||
if let markupNode = self.markupNode {
|
||||
@ -751,7 +751,7 @@ final class PeerInfoAvatarTransformContainerNode: ASDisplayNode {
|
||||
if self.canAttachVideo {
|
||||
videoNode.updateLayout(size: self.avatarNode.frame.size, transition: .immediate)
|
||||
}
|
||||
videoNode.frame = self.avatarNode.frame
|
||||
videoNode.frame = self.avatarNode.contentNode.bounds
|
||||
|
||||
if isExpanded == videoNode.canAttachContent {
|
||||
self.isExpanded = isExpanded
|
||||
@ -1115,7 +1115,7 @@ final class PeerInfoEditingAvatarNode: ASDisplayNode {
|
||||
if self.canAttachVideo {
|
||||
videoNode.updateLayout(size: self.avatarNode.frame.size, transition: .immediate)
|
||||
}
|
||||
videoNode.frame = self.avatarNode.frame
|
||||
videoNode.frame = self.avatarNode.contentNode.bounds
|
||||
|
||||
if isEditing != videoNode.canAttachContent {
|
||||
videoNode.canAttachContent = isEditing && self.canAttachVideo
|
||||
|
Loading…
x
Reference in New Issue
Block a user