mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Merge commit 'd2bb1dc57f89b3601a63c75a35f4c083f63bb8a0'
This commit is contained in:
@@ -1164,6 +1164,10 @@ private func finalStateWithUpdatesAndServerTime(accountPeerId: PeerId, postbox:
|
||||
|
||||
if type.hasPrefix("auth") {
|
||||
updatedState.authorizationListUpdated = true
|
||||
let string = type.dropFirst(4).components(separatedBy: "_")
|
||||
if string.count == 2, let hash = Int64(string[0]), let timestamp = Int32(string[1]) {
|
||||
attributes.append(AuthSessionInfoAttribute(hash: hash, timestamp: timestamp))
|
||||
}
|
||||
}
|
||||
|
||||
let message = StoreMessage(peerId: peerId, namespace: Namespaces.Message.Local, globallyUniqueId: nil, groupingKey: nil, threadId: nil, timestamp: date, flags: [.Incoming], tags: [], globalTags: [], localTags: [], forwardInfo: nil, authorId: peerId, text: messageText, attributes: attributes, media: medias)
|
||||
|
||||
Reference in New Issue
Block a user