* Fix a crash when removing persistent widgets
When a persistent widget is removed, multiple calls to updateShowWidgetInPip happen in succession as each of the widget stores emit updates. But by depending on this.state.persistentWidgetId at the time of the call rather than passing an update function to setState, this had the effect that the removal of the widget could be reverted in the component's state, and so it could end up passing the ID of a removed widget to WidgetPip.
* Re-public updateShowWidgetInPip so we don't change the interface
---------
Co-authored-by: Robin Townsend <robin@robin.town>
* Remove unnecessary PipContainer component
* Redesign the picture-in-picture window
* Add a hover effect to the controls
* Clarify that WidgetPip has call-specific behavior
2023-01-04 04:44:38 +00:00
Renamed from src/components/views/voip/PipView.tsx (Browse further)