Skip to content

Commit

Permalink
🤖 Automated Format and Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ygit authored and github-actions[bot] committed Oct 30, 2023
1 parent de95fc2 commit 811d631
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/hms_room_kit/lib/src/hmssdk_interactor.dart
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ class HMSSDKInteractor {
Future<HMSPeer?> getPeer({required String peerId}) async {
List<HMSPeer>? peers = await hmsSDK.getPeers();

return peers?.firstWhere((element) => element.peerId == peerId);
return peers.firstWhere((element) => element.peerId == peerId);
}

void changeTrackState(HMSTrack forRemoteTrack, bool mute,
Expand Down
2 changes: 1 addition & 1 deletion packages/hms_room_kit/lib/src/meeting/meeting_store.dart
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,7 @@ class MeetingStore extends ChangeNotifier
peerListIterators.clear();
List<String>? offStageRoles = HMSRoomLayout.roleLayoutData?.screens
?.conferencing?.defaultConf?.elements?.onStageExp?.offStageRoles;
offStageRoles?.forEach((role) async {
offStageRoles.forEach((role) async {
var peerListIterator = await _hmsSDKInteractor.getPeerListIterator(
peerListIteratorOptions:
PeerListIteratorOptions(limit: 10, byRoleName: role));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ class _ParticipantsBottomSheetState extends State<ParticipantsBottomSheet> {
if (isOnStageRole) {
if (peer.metadata != null) {
String? peerMetadata = peer.metadata;
if (peerMetadata?.contains("prevRole") ?? false) {
if (peerMetadata.contains("prevRole") ?? false) {
String? previousRole =
jsonDecode(peer.metadata!)["prevRole"];
if (previousRole != null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ class _ParticipantsViewAllBottomSheetState
if (isOnStageRole) {
if (peer.metadata != null) {
String? peerMetadata = peer.metadata;
if (peerMetadata?.contains("prevRole") ?? false) {
if (peerMetadata.contains("prevRole") ?? false) {
String? previousRole =
jsonDecode(peer.metadata!)["prevRole"];
if (previousRole != null) {
Expand Down

0 comments on commit 811d631

Please sign in to comment.