Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/wise-years-shout.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rocket.chat/ui-voip": patch
---

Fixes voice call UI not reflecting active call state when a new view mounted while a call was already active (e.g. opening the popout window)
2 changes: 2 additions & 0 deletions packages/ui-voip/src/providers/useMediaSession.ts
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,8 @@ export const useMediaSession = (instance?: MediaSignalingSession): MediaSessionS

const offCbs = [instance.on('sessionStateChange', updateSessionState), instance.on('hiddenCall', updateSessionState)];

updateSessionState();

return () => {
offCbs.forEach((offCb) => offCb());
};
Expand Down
Loading