merge-requests/131/head
Sikander Saleem 2 years ago
parent a165ac2e91
commit 377fd48693

@ -1201,14 +1201,17 @@ class ChatProviderModel with ChangeNotifier, DiagnosticableTreeMixin {
}
void startRecoding() async {
PermissionStatus status = await Permission.microphone.request();
if (status.isDenied) {
startRecoding();
} else if (status.isGranted) {
sRecoding();
} else {
startRecoding();
}
await Permission.microphone.request().then((PermissionStatus status){
if (status.isPermanentlyDenied) {
// startRecoding();
} else if (status.isDenied) {
startRecoding();
} else if (status.isGranted) {
sRecoding();
} else {
startRecoding();
}});
}
// else {

Loading…
Cancel
Save