From fe5e041db82aac7d2d975a7465e5441f05c8d97f Mon Sep 17 00:00:00 2001 From: V Date: Thu, 27 Jul 2023 01:56:45 +0200 Subject: VoiceMessages: Read file from dynamic path (fixes mac & linux support) --- src/plugins/voiceMessages/DesktopRecorder.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins') diff --git a/src/plugins/voiceMessages/DesktopRecorder.tsx b/src/plugins/voiceMessages/DesktopRecorder.tsx index 176faf3..36f6a60 100644 --- a/src/plugins/voiceMessages/DesktopRecorder.tsx +++ b/src/plugins/voiceMessages/DesktopRecorder.tsx @@ -49,7 +49,7 @@ export const VoiceRecorderDesktop: VoiceRecorder = ({ setAudioBlob, onRecordingC } else { discordVoice.stopLocalAudioRecording(async (filePath: string) => { if (filePath) { - const buf = await VencordNative.pluginHelpers.VoiceMessages.readRecording(); + const buf = await VencordNative.pluginHelpers.VoiceMessages.readRecording(filePath); if (buf) setAudioBlob(new Blob([buf], { type: "audio/ogg; codecs=opus" })); else -- cgit