VoiceMessages: Read file from dynamic path (fixes mac & linux support)

This commit is contained in:
V
2023-07-27 01:56:45 +02:00
parent d18681c197
commit fe5e041db8
3 changed files with 11 additions and 6 deletions

View File

@ -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),
}
}
};