You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR fixes an issue where currentMic, currentCam, and currentSpeaker from useDevices() become undefined after joining a call, despite micState remaining 'granted' and tracks working correctly.
Root cause: The mapDevice function in DailyDevices.tsx was not handling the case where daily.getInputDevices() returns empty objects (during race conditions or timing issues). This caused all devices to lose their selected state.
Solution: Modified mapDevice to preserve previous device selection when getInputDevices() returns empty objects, while maintaining normal behavior when valid device info is returned.
Changes:
- Modified mapDevice function in DailyDevices.tsx to check and preserve previous selection state
- Maintains backward compatibility with existing functionality
- Ensures stable device state throughout the call lifecycle
0 commit comments