Description:
when clicking on the option to send a voice message, the timer and the options to cancel and confirm audio are shown, but also the permission prompt is displayed on the screen, if the user clicks on the option to confirm audio before allowing the use of the microphone , the loading indicator is displayed, and even after giving permission, the charging indicator still continues for an infinite time. And it is worth remembering that after confirming the permission, recording started, even if the loading indicator was active.
Steps to reproduce:
-
Make sure the permission to use the microphone is in "ask"
-
Click to start the audio message,
-
Click on confirm audio message
-
With the permissions prompt still open, click "allow"
Expected behavior:
Avoid infinite loading in the audio message
Actual behavior:
infinite loading in the audio message

Server Setup Information:
- Version of Rocket.Chat Server: 3.12.0-develop
- Operating System: MacOs
- Deployment Method: docker
- Number of Running Instances: 1
- DB Replicaset Oplog: Enabled
- NodeJS Version: 12.18.3
- MongoDB Version: 4.0
Client Setup Information
- Desktop App or Browser Version: Chrome 89.0.4389.72
- Operating System: macOS 10.15.4
Additional context
Relevant logs:
Description:
when clicking on the option to send a voice message, the timer and the options to cancel and confirm audio are shown, but also the permission prompt is displayed on the screen, if the user clicks on the option to confirm audio before allowing the use of the microphone , the loading indicator is displayed, and even after giving permission, the charging indicator still continues for an infinite time. And it is worth remembering that after confirming the permission, recording started, even if the loading indicator was active.
Steps to reproduce:
Make sure the permission to use the microphone is in "ask"
Click to start the audio message,
Click on confirm audio message
With the permissions prompt still open, click "allow"
Expected behavior:
Avoid infinite loading in the audio message
Actual behavior:
infinite loading in the audio message
Server Setup Information:
Client Setup Information
Additional context
Relevant logs: