mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Initial 64-bit id support
This commit is contained in:
@@ -456,7 +456,7 @@ public final class AvatarNode: ASDisplayNode {
|
||||
if peerId.namespace == .max {
|
||||
colorIndex = -1
|
||||
} else {
|
||||
colorIndex = abs(Int(clamping: peerId.id._internalGetInt32Value()))
|
||||
colorIndex = abs(Int(clamping: peerId.id._internalGetInt64Value()))
|
||||
}
|
||||
} else {
|
||||
colorIndex = -1
|
||||
@@ -635,7 +635,7 @@ public func drawPeerAvatarLetters(context: CGContext, size: CGSize, round: Bool
|
||||
if peerId.namespace == .max {
|
||||
colorIndex = -1
|
||||
} else {
|
||||
colorIndex = Int(abs(peerId.id._internalGetInt32Value()))
|
||||
colorIndex = Int(clamping: abs(peerId.id._internalGetInt64Value()))
|
||||
}
|
||||
|
||||
let colorsArray: NSArray
|
||||
|
||||
Reference in New Issue
Block a user