Allow kicking and banning users

This commit is contained in:
Carl Schwan
2020-12-05 11:06:27 +01:00
parent aaa0024fd6
commit 064bc5adbe

View File

@@ -100,13 +100,25 @@ Kirigami.OverlaySheet {
} }
} }
} }
/*Kirigami.BasicListItem { Kirigami.BasicListItem {
visible: user !== room.localUser && room.canSendState("kick")
action: Kirigami.Action { action: Kirigami.Action {
text: i18n("Kick this user") text: i18n("Kick this user")
icon.name: "im-kick-user" icon.name: "im-kick-user"
onTriggered: room.kickMember(user.id) onTriggered: room.kickMember(user.id)
} }
}*/ }
Kirigami.BasicListItem {
visible: user !== room.localUser && room.canSendState("ban")
action: Kirigami.Action {
text: i18n("Ban this user")
icon.name: "im-ban-user"
icon.color: Kirigami.Theme.negativeTextColor
onTriggered: room.banMember(user.id)
}
}
Component { Component {
id: fullScreenImage id: fullScreenImage