mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
Initial peer id refactoring
This commit is contained in:
@@ -331,7 +331,7 @@ final class PeerInfoAvatarTransformContainerNode: ASDisplayNode {
|
||||
representations = topRepresentations
|
||||
videoRepresentations = videoRepresentationsValue
|
||||
immediateThumbnailData = immediateThumbnail
|
||||
id = Int64(peer.id.id)
|
||||
id = Int64(peer.id.id._internalGetInt32Value())
|
||||
if let resource = videoRepresentations.first?.representation.resource as? CloudPhotoSizeMediaResource {
|
||||
id = id &+ resource.photoId
|
||||
}
|
||||
@@ -342,7 +342,7 @@ final class PeerInfoAvatarTransformContainerNode: ASDisplayNode {
|
||||
if case let .cloud(imageId, _, _) = reference {
|
||||
id = imageId
|
||||
} else {
|
||||
id = Int64(peer.id.id)
|
||||
id = Int64(peer.id.id._internalGetInt32Value())
|
||||
}
|
||||
}
|
||||
|
||||
@@ -621,7 +621,7 @@ final class PeerInfoEditingAvatarNode: ASDisplayNode {
|
||||
representations = topRepresentations
|
||||
videoRepresentations = videoRepresentationsValue
|
||||
immediateThumbnailData = immediateThumbnail
|
||||
id = Int64(peer.id.id)
|
||||
id = Int64(peer.id.id._internalGetInt32Value())
|
||||
if let resource = videoRepresentations.first?.representation.resource as? CloudPhotoSizeMediaResource {
|
||||
id = id &+ resource.photoId
|
||||
}
|
||||
@@ -632,7 +632,7 @@ final class PeerInfoEditingAvatarNode: ASDisplayNode {
|
||||
if case let .cloud(imageId, _, _) = reference {
|
||||
id = imageId
|
||||
} else {
|
||||
id = Int64(peer.id.id)
|
||||
id = Int64(peer.id.id._internalGetInt32Value())
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user