diff --git a/example/lib/pages/room.dart b/example/lib/pages/room.dart index c68094e21..29d64c0a0 100644 --- a/example/lib/pages/room.dart +++ b/example/lib/pages/room.dart @@ -34,8 +34,6 @@ class _RoomPageState extends State { @override void initState() { super.initState(); - // add callback for a `RoomEvent` as opposed to a `ParticipantEvent` - widget.room.addListener(_onRoomDidUpdate); // add callbacks for finer grained events _setUpListeners(); _sortParticipants(); @@ -86,11 +84,6 @@ class _RoomPageState extends State { WidgetsBindingCompatible.instance?.addPostFrameCallback( (timeStamp) => Navigator.popUntil(context, (route) => route.isFirst)); }) - ..on((event) { - print('Participant event'); - // sort participants on many track events as noted in documentation linked above - _sortParticipants(); - }) ..on((event) { context.showRecordingStatusChangedDialog(event.activeRecording); }) @@ -153,10 +146,6 @@ class _RoomPageState extends State { } } - void _onRoomDidUpdate() { - _sortParticipants(); - } - void _onE2EEStateEvent(TrackE2EEStateEvent e2eeState) { print('e2ee state: $e2eeState'); }