buildDefaultChannelActions
fun buildDefaultChannelActions(selectedChannel: Channel, isMuted: Boolean, ownCapabilities: Set<String>, viewModel: ChannelListViewModel, onViewInfoAction: (Channel) -> Unit): List<ChannelAction>
Builds the default list of channel actions, based on the current user permissions and channel state. Each action is self-describing and carries its icon, label, and execution handler.
Actions vary by channel type:
DM: View Info, Mute/Unmute User, Block/Unblock User, Archive Chat, Delete Chat
Group (owner): View Info, Archive Group, Delete Group
Group (member): View Info, Archive Group, Leave Group
Return
The list of channel actions to display.
Parameters
selectedChannel
The currently selected channel.
isMuted
If the channel is muted or not.
ownCapabilities
Set of capabilities the user is given for the current channel.
viewModel
The ChannelListViewModel to bind action handlers to.
onViewInfoAction
Handler invoked when the user selects the "View Info" action.