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 {