@qafka/react-native 2.3.1 → 2.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -358,8 +358,14 @@ function useVoiceChat({ apiUrl, apiKey, userContext, contextDescription, onToolS
358
358
  }
359
359
  }, []);
360
360
  const connect = (0, react_1.useCallback)(async () => {
361
- if (serviceRef.current?.isConnected)
361
+ if (serviceRef.current?.isConnected) {
362
+ // Re-entering the voice page after a swipe to chat (which calls pauseMic
363
+ // and stops native capture). The socket is still open, so the fresh-
364
+ // connect path below would no-op and leave the mic stopped — resume
365
+ // capture so the user can be heard again.
366
+ await serviceRef.current.resumeMic();
362
367
  return;
368
+ }
363
369
  setState('connecting');
364
370
  const service = new RealtimeService_1.RealtimeService(apiUrl, apiKey);
365
371
  if (getSessionToken)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qafka/react-native",
3
- "version": "2.3.1",
3
+ "version": "2.3.2",
4
4
  "description": "Drop-in AI assistant for React Native: chat, voice, and tool execution with screen-aware navigation.",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",