Don't offer to kick users that already left

(cherry picked from commit bd893adb34)
This commit is contained in:
Tobias Fella
2021-05-22 00:26:14 +02:00
parent b3d90ebf82
commit 41993bfe24

View File

@@ -104,7 +104,7 @@ Kirigami.OverlaySheet {
} }
} }
Kirigami.BasicListItem { Kirigami.BasicListItem {
visible: user !== room.localUser && room.canSendState("kick") visible: user !== room.localUser && room.canSendState("kick") && room.containsUser(user)
action: Kirigami.Action { action: Kirigami.Action {
text: i18n("Kick this user") text: i18n("Kick this user")