When I go to attachments, then click on the camera preview, I can change the camera type (front and back), however when I multiple click on the change camera type button many times, the camera freezes and the screen is blurred if I change the mode to "video" or select current zoom type, then the camera reboots
Expected Behavior
The camera should not freeze when changing "camera mode"
Actual Behavior
When you press the "change camera mode" button multiple times, the camera freezes
Steps to Reproduce
Go to attachments and open camera from camera-preview
Multiple and fast touch on "change camera mode" button
Checklist
Description
When I go to attachments, then click on the camera preview, I can change the camera type (front and back), however when I multiple click on the change camera type button many times, the camera freezes and the screen is blurred if I change the mode to "video" or select current zoom type, then the camera reboots
Expected Behavior
The camera should not freeze when changing "camera mode"
Actual Behavior
When you press the "change camera mode" button multiple times, the camera freezes
Steps to Reproduce
Environment
Device:
iPhone 11 Pro Max
iOS version:
17.4.1
App version:
10.12
https://github.com/TelegramMessenger/Telegram-iOS/assets/82367970/c93671b7-ef5f-427f-aa28-bb859005e408