Matthias Nott
2026-03-07 0e888d62af1434fef231e11a5c307a5b48a8deb1
contexts/ConnectionContext.tsx
....@@ -24,7 +24,7 @@
2424 connect: (config?: ServerConfig) => void;
2525 disconnect: () => void;
2626 sendTextMessage: (text: string) => boolean;
27
- sendVoiceMessage: (audioBase64: string, transcript?: string) => boolean;
27
+ sendVoiceMessage: (audioBase64: string, transcript?: string, messageId?: string) => boolean;
2828 sendImageMessage: (imageBase64: string, caption: string, mimeType: string) => boolean;
2929 sendCommand: (command: string, args?: Record<string, unknown>) => boolean;
3030 saveServerConfig: (config: ServerConfig) => Promise<void>;
....@@ -120,11 +120,12 @@
120120 }, []);
121121
122122 const sendVoiceMessage = useCallback(
123
- (audioBase64: string, transcript: string = ""): boolean => {
123
+ (audioBase64: string, transcript: string = "", messageId?: string): boolean => {
124124 return wsClient.send({
125125 type: "voice",
126126 content: transcript,
127127 audioBase64,
128
+ messageId,
128129 });
129130 },
130131 []