@livechatta/sdk 1.0.0 → 1.0.1

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.
@@ -294,7 +294,8 @@ class Permissions {
294
294
  const { Capacitor, registerPlugin } = await import('@capacitor/core');
295
295
  if (Capacitor && Capacitor.isPluginAvailable && Capacitor.isPluginAvailable('HopBridge')) {
296
296
  const HopBridge = registerPlugin('HopBridge');
297
- const status = await HopBridge.requestPermissions();
297
+ // Only the dialogs asked for: video adds the camera prompt, audio:false skips the mic (and Bluetooth).
298
+ const status = await HopBridge.requestPermissions({ wantVideo, wantAudio });
298
299
  mic = (status === null || status === void 0 ? void 0 : status.mic) || 'prompt';
299
300
  cam = (status === null || status === void 0 ? void 0 : status.cam) || 'prompt';
300
301
  }