mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-06 03:33:41 +02:00
Fix coding
This commit is contained in:
parent
7010f1bf74
commit
c3df326987
1 changed files with 1 additions and 1 deletions
|
|
@ -47,7 +47,7 @@ public struct EngineMessageReplyQuote: Codable, Equatable {
|
|||
var container = encoder.container(keyedBy: CodingKeys.self)
|
||||
|
||||
try container.encode(self.text, forKey: .text)
|
||||
try container.encode(self.offset.flatMap(Int32.init(clamping:)), forKey: .offset)
|
||||
try container.encodeIfPresent(self.offset.flatMap(Int32.init(clamping:)), forKey: .offset)
|
||||
try container.encode(self.entities, forKey: .entities)
|
||||
if let media = self.media {
|
||||
let mediaEncoder = PostboxEncoder()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue