diff --git a/_locales/en/messages.json b/_locales/en/messages.json index 6817aebcf5..d0afa3919e 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -960,7 +960,7 @@ "description": "Confirmation dialog message for when the voice recording is interrupted due to app losing focus" }, "voiceNoteLimit": { - "message": "Voice messages are limited to five minutes. Recording will stop if you switch to another app.", + "message": "Voice messages are limited to one hour. Recording will stop if you switch to another app.", "description": "Shown in toast to warn user about limited time and that window must be in focus" }, "voiceNoteMustBeOnlyAttachment": { diff --git a/ts/components/conversation/AudioCapture.tsx b/ts/components/conversation/AudioCapture.tsx index ea1ef03460..48246bed3a 100644 --- a/ts/components/conversation/AudioCapture.tsx +++ b/ts/components/conversation/AudioCapture.tsx @@ -122,7 +122,7 @@ export const AudioCapture = ({ } setDurationText(`${minutes}:${seconds}`); - if (duration >= moment.duration(5, 'minutes')) { + if (duration >= moment.duration(1, 'hours')) { errorRecording(ErrorDialogAudioRecorderType.Timeout); } }, 1000); diff --git a/ts/services/audioRecorder.ts b/ts/services/audioRecorder.ts index b634c12117..5ac233eb36 100644 --- a/ts/services/audioRecorder.ts +++ b/ts/services/audioRecorder.ts @@ -61,7 +61,7 @@ export class RecorderClass { encoding: 'mp3', workerDir: 'js/', // must end with slash options: { - timeLimit: 360, // one minute more than our UI-imposed limit + timeLimit: 60 + 3600, // one minute more than our UI-imposed limit }, }); this.recorder.onComplete = this.onComplete.bind(this);