{
{isRecording ? ( ) : ( - + + + + )}
@@ -272,6 +304,9 @@ class SessionRecordingInner extends React.Component { this.props.onExitVoiceNoteView(); } + /** + * Sends the recorded voice message + */ private async onSendVoiceMessage() { if (!this.audioBlobMp3 || !this.audioBlobMp3.size) { window?.log?.info('Empty audio blob'); @@ -306,6 +341,9 @@ class SessionRecordingInner extends React.Component { }); } + /** + * Stops recording audio, sets recording state to stopped. + */ private async stopRecordingStream() { if (!this.recorder) { return;