Raise voice note time limit to one hour

This commit is contained in:
Fedor Indutny 2022-04-06 14:39:54 -07:00 committed by GitHub
parent 33b8b59c55
commit 5fdda012cd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View file

@ -960,7 +960,7 @@
"description": "Confirmation dialog message for when the voice recording is interrupted due to app losing focus" "description": "Confirmation dialog message for when the voice recording is interrupted due to app losing focus"
}, },
"voiceNoteLimit": { "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" "description": "Shown in toast to warn user about limited time and that window must be in focus"
}, },
"voiceNoteMustBeOnlyAttachment": { "voiceNoteMustBeOnlyAttachment": {

View file

@ -122,7 +122,7 @@ export const AudioCapture = ({
} }
setDurationText(`${minutes}:${seconds}`); setDurationText(`${minutes}:${seconds}`);
if (duration >= moment.duration(5, 'minutes')) { if (duration >= moment.duration(1, 'hours')) {
errorRecording(ErrorDialogAudioRecorderType.Timeout); errorRecording(ErrorDialogAudioRecorderType.Timeout);
} }
}, 1000); }, 1000);

View file

@ -61,7 +61,7 @@ export class RecorderClass {
encoding: 'mp3', encoding: 'mp3',
workerDir: 'js/', // must end with slash workerDir: 'js/', // must end with slash
options: { 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); this.recorder.onComplete = this.onComplete.bind(this);