Skip to content

Commit

Permalink
Added check for sip peer to not show unmute video option
Browse files Browse the repository at this point in the history
  • Loading branch information
Decoder07 committed Mar 29, 2024
1 parent 66c205c commit 725cc09
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import 'package:hms_room_kit/src/meeting/meeting_store.dart';
import 'package:hms_room_kit/src/model/peer_track_node.dart';
import 'package:hms_room_kit/src/widgets/common_widgets/hms_cross_button.dart';
import 'package:hms_room_kit/src/widgets/common_widgets/hms_subheading_text.dart';
import 'package:hmssdk_flutter/hmssdk_flutter.dart';
import 'package:provider/provider.dart';

///[RemotePeerBottomSheet] is a widget that is used to render the bottom sheet for remote peers
Expand Down Expand Up @@ -188,8 +189,8 @@ class _RemotePeerBottomSheetState extends State<RemotePeerBottomSheet> {
? HMSThemeColors.onSurfaceLowEmphasis
: HMSThemeColors.onSurfaceHighEmphasis)),

if (widget.meetingStore.localPeer?.role.permissions.mute ??
false)
if ((widget.meetingStore.localPeer?.role.permissions.mute ??
false) && widget.peerTrackNode.peer.type == HMSPeerType.regular)
ListTile(
horizontalTitleGap: 2,
onTap: () async {
Expand Down

0 comments on commit 725cc09

Please sign in to comment.