-
Notifications
You must be signed in to change notification settings - Fork 274
Description
Is your feature request related to a problem? Please describe.
We currently have a voice recording flow similar to whatsApp in our SDK, we request the check for the record permission when the first time user holds the mic button. But in order to accept the permission, we lose the hold gesture.
The solution we initially thought was to just request the permission in the first hold and continue recording in the subsequent holds. but because there is no way to check the permission without requesting it. We cannot determine if it's a permission request or permission check.
Describe the solution you'd like
A simple boolean (bool request = true) or a separate method to differentiate them.
Additional context
GetStream/stream-chat-flutter#2355
Note: I am also open to create a PR if you are fine with the request.