Don't allow users to ignore themselves

Implements #16
This commit is contained in:
Tobias Fella
2020-11-18 22:51:06 +01:00
committed by Carl Schwan
parent f46fd90743
commit 516ad863b8

View File

@@ -90,6 +90,7 @@ Kirigami.OverlaySheet {
QQC2.MenuSeparator {}
Kirigami.BasicListItem {
visible: user !== room.localUser
action: Kirigami.Action {
text: room.connection.isIgnored(user) ? i18n("Unignore this user") : i18n("Ignore this user")
icon.name: "im-invisible-user"