From f23daaf8ae4e6ea7dcd9a61e9a62a194ca7b5f5b Mon Sep 17 00:00:00 2001 From: "daniel.boehrs" Date: Mon, 8 Apr 2019 09:38:29 +0200 Subject: [PATCH] HOTFIX no audio recording after first try --- lib/src/chat/chat_composer_bloc.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/src/chat/chat_composer_bloc.dart b/lib/src/chat/chat_composer_bloc.dart index 9eb9294d..a8c85a4e 100644 --- a/lib/src/chat/chat_composer_bloc.dart +++ b/lib/src/chat/chat_composer_bloc.dart @@ -68,7 +68,8 @@ class ChatComposerBloc extends Bloc { if (event is StartAudioRecording) { try { bool hasContactPermission = await hasPermission(PermissionGroup.microphone); - if (hasContactPermission) { + bool hasFilesPermission = await hasPermission(PermissionGroup.storage); + if (hasContactPermission && hasFilesPermission) { await startAudioRecorder(); yield ChatComposerRecordingAudio(timer: "00:00:00"); } else {