mirror of
https://github.com/liamcottle/reticulum-meshchat.git
synced 2026-10-26 02:48:47 -04:00
ask user to confirm recording new audio attachment if an existing audio attachment exists
This commit is contained in:
parent
064133665a
commit
da4601e212
1 changed files with 5 additions and 0 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue