From 2fe32f7d72b7027d784d691f3c2f3d24a6ce3a90 Mon Sep 17 00:00:00 2001 From: Hiroshi Horie <548776+hiroshihorie@users.noreply.github.com> Date: Fri, 3 Dec 2021 00:17:56 +0700 Subject: [PATCH] remove unnecessary cast --- lib/src/room.dart | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/src/room.dart b/lib/src/room.dart index a50b36e..bfa89cb 100644 --- a/lib/src/room.dart +++ b/lib/src/room.dart @@ -179,8 +179,7 @@ class Room extends DisposableChangeNotifier with EventsEmittable { (event) => _onSignalConnectionQualityUpdateEvent(event.updates)) ..on(_onDataMessageEvent) ..on((event) async { - final publication = localParticipant.trackPublications[event.sid] - as LocalTrackPublication?; + final publication = localParticipant.trackPublications[event.sid]; if (event.muted) { await publication?.mute(); } else {