aboutsummaryrefslogtreecommitdiff
path: root/src/VencordNative.ts
diff options
context:
space:
mode:
authorV <vendicated@riseup.net>2023-07-27 01:56:45 +0200
committerV <vendicated@riseup.net>2023-07-27 02:06:18 +0200
commitfe5e041db82aac7d2d975a7465e5441f05c8d97f (patch)
tree1cd39411fbdcf13abbeb9ce3d45557a9dba0de87 /src/VencordNative.ts
parentd18681c197171cd7d857a1d11ef67ebd202463aa (diff)
downloadVencord-fe5e041db82aac7d2d975a7465e5441f05c8d97f.tar.gz
Vencord-fe5e041db82aac7d2d975a7465e5441f05c8d97f.tar.bz2
Vencord-fe5e041db82aac7d2d975a7465e5441f05c8d97f.zip
VoiceMessages: Read file from dynamic path (fixes mac & linux support)
Diffstat (limited to 'src/VencordNative.ts')
-rw-r--r--src/VencordNative.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/VencordNative.ts b/src/VencordNative.ts
index 4e34f3d..ed0686d 100644
--- a/src/VencordNative.ts
+++ b/src/VencordNative.ts
@@ -64,7 +64,7 @@ export default {
resolveRedirect: (url: string) => invoke<string>(IpcEvents.OPEN_IN_APP__RESOLVE_REDIRECT, url),
},
VoiceMessages: {
- readRecording: () => invoke<Uint8Array | null>(IpcEvents.VOICE_MESSAGES_READ_RECORDING),
+ readRecording: (path: string) => invoke<Uint8Array | null>(IpcEvents.VOICE_MESSAGES_READ_RECORDING, path),
}
}
};