mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Fix edge case
This commit is contained in:
parent
a5028f88ce
commit
78b29729c4
@ -166,7 +166,7 @@ public struct PeerId: Hashable, CustomStringConvertible, Comparable, Codable {
|
||||
let offsetIdHighBits = (data >> (32 + 3)) & 0xffffffff
|
||||
let idHighBits = offsetIdHighBits << 32
|
||||
|
||||
if idHighBits == 0 {
|
||||
if idHighBits == 0 && namespaceBits != 0 {
|
||||
if let uint32Value = UInt32(exactly: idLowBits) {
|
||||
self.id = Id(rawValue: Int64(Int32(bitPattern: uint32Value)))
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user