Allow unbanning users
This commit is contained in:
@@ -128,6 +128,19 @@ Kirigami.OverlaySheet {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Kirigami.BasicListItem {
|
||||||
|
visible: user !== room.localUser && room.canSendState("unban") && room.isUserBanned(user.id)
|
||||||
|
|
||||||
|
action: Kirigami.Action {
|
||||||
|
text: i18n("Unban this user")
|
||||||
|
icon.name: "im-irc"
|
||||||
|
icon.color: Kirigami.Theme.negativeTextColor
|
||||||
|
onTriggered: {
|
||||||
|
room.unban(user.id)
|
||||||
|
root.close()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Kirigami.BasicListItem {
|
Kirigami.BasicListItem {
|
||||||
action: Kirigami.Action {
|
action: Kirigami.Action {
|
||||||
text: i18n("Open a private chat")
|
text: i18n("Open a private chat")
|
||||||
|
|||||||
Reference in New Issue
Block a user