Skip to content

Commit

Permalink
Hide virtual background option for vrt user (#1785)
Browse files Browse the repository at this point in the history
  • Loading branch information
Decoder07 authored Jun 7, 2024
1 parent 49248e0 commit 634c5bc
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,10 @@ class _AppUtilitiesBottomSheetState extends State<AppUtilitiesBottomSheet> {
optionText: meetingStore.isWhiteboardEnabled
? "Close Whiteboard"
: "Open Whiteboard"),
if (AppDebugConfig.isVirtualBackgroundEnabled)
if (AppDebugConfig.isVirtualBackgroundEnabled &&
(meetingStore.localPeer?.role.publishSettings?.allowed
.contains("video") ??
false))
MoreOptionItem(
onTap: () async {
Navigator.pop(context);
Expand Down

0 comments on commit 634c5bc

Please sign in to comment.