Skip to content

Commit 13dd62d

Browse files
committed
Add flag for controlling mute user action independently from mute channel
1 parent 283ddf0 commit 13dd62d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

stream-chat-android-compose/src/main/java/io/getstream/chat/android/compose/ui/components/channels/ChannelOptionItemVisibility.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ package io.getstream.chat.android.compose.ui.components.channels
2222
* @param isViewInfoVisible Visibility of the view channel info option.
2323
* @param isLeaveChannelVisible Visibility of the leave channel option.
2424
* @param isMuteChannelVisible Visibility of the mute channel option.
25+
* @param isMuteUserVisible Visibility of the mute user option (DM channels only).
2526
* @param isArchiveChannelVisible Visibility of the archive channel option.
2627
* @param isPinChannelVisible Visibility of the pin channel option.
2728
* @param isDeleteChannelVisible Visibility of the delete channel option.
@@ -32,6 +33,7 @@ public data class ChannelOptionItemVisibility(
3233
val isViewInfoVisible: Boolean = true,
3334
val isLeaveChannelVisible: Boolean = true,
3435
val isMuteChannelVisible: Boolean = true,
36+
val isMuteUserVisible: Boolean = true,
3537
val isArchiveChannelVisible: Boolean = false,
3638
val isPinChannelVisible: Boolean = false,
3739
val isDeleteChannelVisible: Boolean = true,

stream-chat-android-compose/src/main/java/io/getstream/chat/android/compose/ui/components/channels/ChannelOptions.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ private fun buildDmChannelActions(
169169
onViewInfoAction = onViewInfoAction,
170170
),
171171
buildDmMuteUserAction(
172-
isVisible = optionVisibility.isMuteChannelVisible,
172+
isVisible = optionVisibility.isMuteUserVisible,
173173
otherUserId = otherUserId,
174174
selectedChannel = selectedChannel,
175175
viewModel = viewModel,

0 commit comments

Comments
 (0)