Raise voice note time limit to one hour
This commit is contained in:
parent
33b8b59c55
commit
5fdda012cd
3 changed files with 3 additions and 3 deletions
|
@ -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": {
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue