Initial 64-bit id support

This commit is contained in:
Ali
2021-06-28 20:02:50 +04:00
parent d7f64543d5
commit a23971c0ef
129 changed files with 1486 additions and 1314 deletions

View File

@@ -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