ask user to confirm recording new audio attachment if an existing audio attachment exists

This commit is contained in:
liamcottle 2024-06-03 02:56:48 +12:00
parent 064133665a
commit da4601e212

View file

@ -2394,6 +2394,11 @@
return;
}
// ask user to confirm recording new audio attachment, if an existing audio attachment exists
if(this.newMessageAudio && !confirm("An audio recording is already attached. A new recording will replace it. Do you want to continue?")){
return;
}
// start recording microphone
this.audioAttachmentMicrophoneRecorder = new Codec2MicrophoneRecorder();
this.audioAttachmentRecordingStartedAt = Date.now();