mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-21 13:04:42 +00:00
Fix encoding
This commit is contained in:
parent
6de107d9c3
commit
128ac5e8e4
@ -78,7 +78,8 @@ public final class AccountRecord: PostboxCoding, Equatable, Codable {
|
||||
return encoder.makeData()
|
||||
}
|
||||
try container.encode(attributesData, forKey: .attributes)
|
||||
try container.encodeIfPresent(self.temporarySessionId, forKey: .attributes)
|
||||
let temporarySessionIdString: String? = self.temporarySessionId.flatMap({ "\($0)" })
|
||||
try container.encodeIfPresent(temporarySessionIdString, forKey: .attributes)
|
||||
}
|
||||
|
||||
public init(id: AccountRecordId, attributes: [AccountRecordAttribute], temporarySessionId: Int64?) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user