mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2026-01-07 13:35:09 +00:00
no message
This commit is contained in:
@@ -2177,6 +2177,9 @@ final class SecureIdDocumentFormControllerNode: FormControllerNode<SecureIdDocum
|
||||
let id = arc4random64()
|
||||
innerState.documents.append(.local(SecureIdVerificationLocalDocument(id: id, resource: SecureIdLocalImageResource(localId: id, source: resource), timestamp: Int32(Date().timeIntervalSince1970), state: .uploading(0.0))))
|
||||
}
|
||||
if innerState.documents.count > 20 {
|
||||
innerState.documents = Array(innerState.documents[0 ..< 20])
|
||||
}
|
||||
case .selfie:
|
||||
loop: for resource in resources {
|
||||
let id = arc4random64()
|
||||
@@ -2200,6 +2203,9 @@ final class SecureIdDocumentFormControllerNode: FormControllerNode<SecureIdDocum
|
||||
let id = arc4random64()
|
||||
innerState.translations.append(.local(SecureIdVerificationLocalDocument(id: id, resource: SecureIdLocalImageResource(localId: id, source: resource), timestamp: Int32(Date().timeIntervalSince1970), state: .uploading(0.0))))
|
||||
}
|
||||
if innerState.translations.count > 20 {
|
||||
innerState.translations = Array(innerState.documents[0 ..< 20])
|
||||
}
|
||||
}
|
||||
if let recognizedData = recognizedData {
|
||||
switch innerState.documentState {
|
||||
|
||||
Reference in New Issue
Block a user