Initial peer id refactoring

This commit is contained in:
Ali
2021-03-24 19:35:52 +04:00
parent 86e3e2bc35
commit 4dae31e340
127 changed files with 505 additions and 532 deletions

View File

@@ -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())
}
}