mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Fix flatbuffers serialization
This commit is contained in:
@@ -16,9 +16,9 @@ public func FlatBuffers_getRoot<T: FlatBufferObject & Verifiable>(
|
||||
options: VerifierOptions = .init()
|
||||
) -> T {
|
||||
if flatBuffers_checkedGet {
|
||||
return getRoot(byteBuffer: &byteBuffer)
|
||||
} else {
|
||||
return try! getCheckedRoot(byteBuffer: &byteBuffer, fileId: fileId, options: options)
|
||||
} else {
|
||||
return getRoot(byteBuffer: &byteBuffer)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user