diff --git a/TelegramUI/SecureIdDocumentFormControllerNode.swift b/TelegramUI/SecureIdDocumentFormControllerNode.swift index a7b96a628a..b239f42041 100644 --- a/TelegramUI/SecureIdDocumentFormControllerNode.swift +++ b/TelegramUI/SecureIdDocumentFormControllerNode.swift @@ -2177,6 +2177,9 @@ final class SecureIdDocumentFormControllerNode: FormControllerNode 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 20 { + innerState.translations = Array(innerState.documents[0 ..< 20]) + } } if let recognizedData = recognizedData { switch innerState.documentState {