Merge commit 'd2bb1dc57f89b3601a63c75a35f4c083f63bb8a0'

This commit is contained in:
Ali
2023-09-08 19:22:37 +04:00
23 changed files with 287 additions and 223 deletions

View File

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