mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-10-09 03:20:48 +00:00
Merge crash fix
This commit is contained in:
parent
0430ea5e49
commit
5beffde0ad
@ -234,10 +234,13 @@ private class AdMessagesHistoryContextImpl {
|
||||
}
|
||||
|
||||
messagePeers[author.id] = author
|
||||
|
||||
let messageHash = (self.text.hashValue &+ 31 &* peerId.hashValue) &* 31 &+ author.id.hashValue
|
||||
let messageStableVersion = UInt32(bitPattern: Int32(truncatingIfNeeded: messageHash))
|
||||
|
||||
return Message(
|
||||
stableId: 0,
|
||||
stableVersion: 0,
|
||||
stableVersion: messageStableVersion,
|
||||
id: MessageId(peerId: peerId, namespace: Namespaces.Message.Local, id: 0),
|
||||
globallyUniqueId: nil,
|
||||
groupingKey: nil,
|
||||
|
Loading…
x
Reference in New Issue
Block a user