-
Notifications
You must be signed in to change notification settings - Fork 18
Description
Expected behavior
I'm experiencing an issue similar to what I saw here:
#9
This time the issue is with the isRecording value returned by the useRecording hook. I expect the isRecording value to accurately reflect whether or not there is a recording in progress for the current room.
Describe the bug (unexpected behavior)
When a user joins a room and starts a recording, the isRecording value is true. If that user then stops the recording and leaves the room, the isRecording value remains true. If the user rejoins the room, the isRecording value is still true even though there is no recording in progress.
During the above process, if there is another user in the room the isRecording value changes from true to false as expected.
Steps to reproduce
I have a modified version of our last code sandbox here:
https://codesandbox.io/s/angry-driscoll-h0ouu6?file=/src/SessionIDDisplay.js
To reproduce:
- Open code sandbox in 2 separate windows
- In both windows, join the call
- In window A, click "start recording"
- After delay note that "is recording" is showing
truefor both users - In window A, click "leave call"
- Note that "is recording" is showing
truein window A andfalsein window B - In window A, click "join call"
- Note that "is recording" is still showing
truein window A andfalsein window B