Dart implementation of Room does not update itself properly from incoming events from the Native Layer
Current bug behaviour
When receiving connection related events, the room simply rebroadcasts its current state without updating from the incoming event. Example: onReconnect, the RemoteParticipant state could have changed, but the old state is rebroadcast.
Expected behaviour
Room to update its state based on the information it receives.
Steps to reproduce
Steps to reproduce:
- Connect two devices to the same room
- Cut the network connectivity on one
- Disconnect the other from the room
- Restore the network connectivity of the former
Result:
Though event.roomModel
now shows an empty list of RemoteParticipants
, the room broadcasts its existing state, including the disconnected RemoteParticipant via its broadcast stream.
Flutter doctor output
Output of: flutter doctor -v
More environment information
Log information
Enter log information in this code block
You can add this to your app for debug logging: `TwilioProgrammableVideo.debug(dart: true, native: true);`