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

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

Loading…
Cancel
Save