change (member moderation) : allow disabled action and render unban too
This commit is contained in:
parent
a09cc8de97
commit
e405bf80a6
11 changed files with 119 additions and 77 deletions
|
|
@ -263,10 +263,10 @@ class MessagesNode @AssistedInject constructor(
|
|||
)
|
||||
roomMemberModerationRenderer.Render(
|
||||
state = state.roomMemberModerationState,
|
||||
onSelectAction = { action ->
|
||||
onSelectAction = { action, target ->
|
||||
when (action) {
|
||||
is ModerationAction.DisplayProfile -> onUserDataClick(action.user.userId)
|
||||
else -> state.roomMemberModerationState.eventSink(RoomMemberModerationEvents.ProcessAction(action))
|
||||
is ModerationAction.DisplayProfile -> onUserDataClick(target.userId)
|
||||
else -> state.roomMemberModerationState.eventSink(RoomMemberModerationEvents.ProcessAction(action, target))
|
||||
}
|
||||
},
|
||||
modifier = Modifier,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue