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
No known key found for this signature in database
GPG key ID: A1DC0CFB5615D905
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),
}
}
};