Skip to content
This repository has been archived by the owner on Oct 19, 2022. It is now read-only.

Commit

Permalink
HOTFIX no audio recording after first try
Browse files Browse the repository at this point in the history
  • Loading branch information
Boehrsi committed Apr 8, 2019
1 parent c5d4745 commit f23daaf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/src/chat/chat_composer_bloc.dart
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ class ChatComposerBloc extends Bloc<ChatComposerEvent, ChatComposerState> {
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 {
Expand Down

0 comments on commit f23daaf

Please sign in to comment.