Skip to content

Commit f5db703

Browse files
committed
Remove ChannelAction.requiredCapability
1 parent d511f3a commit f5db703

File tree

1 file changed

+0
-7
lines changed
  • stream-chat-android-ui-common/src/main/kotlin/io/getstream/chat/android/ui/common/state/channels/actions

1 file changed

+0
-7
lines changed

stream-chat-android-ui-common/src/main/kotlin/io/getstream/chat/android/ui/common/state/channels/actions/ChannelAction.kt

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ package io.getstream.chat.android.ui.common.state.channels.actions
1818

1919
import androidx.annotation.DrawableRes
2020
import io.getstream.chat.android.models.Channel
21-
import io.getstream.chat.android.models.ChannelCapabilities
2221
import io.getstream.chat.android.ui.common.R
2322

2423
/**
@@ -28,7 +27,6 @@ import io.getstream.chat.android.ui.common.R
2827
* @property channel The channel this action targets.
2928
* @property icon Drawable resource for the action icon.
3029
* @property label Human-readable label for the action.
31-
* @property requiredCapability Optional channel capability required to show this action.
3230
* @property confirmationPopup Optional confirmation dialog to show before executing.
3331
* @property isDestructive Whether this action is destructive (e.g. delete).
3432
* @property onAction The handler to execute when the action is confirmed.
@@ -39,7 +37,6 @@ public interface ChannelAction {
3937
@get:DrawableRes
4038
public val icon: Int
4139
public val label: String
42-
public val requiredCapability: String? get() = null
4340
public val confirmationPopup: ConfirmationPopup? get() = null
4441
public val isDestructive: Boolean get() = false
4542
public val onAction: () -> Unit
@@ -68,7 +65,6 @@ public class LeaveGroup(
6865
) : ChannelAction {
6966
@DrawableRes
7067
override val icon: Int = R.drawable.stream_design_ic_leave
71-
override val requiredCapability: String = ChannelCapabilities.LEAVE_CHANNEL
7268
override val isDestructive: Boolean = true
7369
}
7470

@@ -82,7 +78,6 @@ public class MuteChannel(
8278
) : ChannelAction {
8379
@DrawableRes
8480
override val icon: Int = R.drawable.stream_design_ic_mute
85-
override val requiredCapability: String = ChannelCapabilities.MUTE_CHANNEL
8681
}
8782

8883
/**
@@ -95,7 +90,6 @@ public class UnmuteChannel(
9590
) : ChannelAction {
9691
@DrawableRes
9792
override val icon: Int = R.drawable.stream_design_ic_audio
98-
override val requiredCapability: String = ChannelCapabilities.MUTE_CHANNEL
9993
}
10094

10195
/**
@@ -109,7 +103,6 @@ public class DeleteConversation(
109103
) : ChannelAction {
110104
@DrawableRes
111105
override val icon: Int = R.drawable.stream_design_ic_delete
112-
override val requiredCapability: String = ChannelCapabilities.DELETE_CHANNEL
113106
override val isDestructive: Boolean = true
114107
}
115108

0 commit comments

Comments
 (0)