diff options
author | V <vendicated@riseup.net> | 2023-07-27 01:56:45 +0200 |
---|---|---|
committer | V <vendicated@riseup.net> | 2023-07-27 02:06:18 +0200 |
commit | fe5e041db82aac7d2d975a7465e5441f05c8d97f (patch) | |
tree | 1cd39411fbdcf13abbeb9ce3d45557a9dba0de87 /src/plugins | |
parent | d18681c197171cd7d857a1d11ef67ebd202463aa (diff) | |
download | Vencord-fe5e041db82aac7d2d975a7465e5441f05c8d97f.tar.gz Vencord-fe5e041db82aac7d2d975a7465e5441f05c8d97f.tar.bz2 Vencord-fe5e041db82aac7d2d975a7465e5441f05c8d97f.zip |
VoiceMessages: Read file from dynamic path (fixes mac & linux support)
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/voiceMessages/DesktopRecorder.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
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 |