summary refs log tree commit diff
path: root/src/PowerlevelsEditModels.cpp
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2022-07-09 15:36:15 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2022-07-09 15:36:28 +0200
commit11fa4821aa4ff93849b16dd3c9a7575533f6f296 (patch)
treeb1952709198aaa9a2c376ad4e6efea786c1cd2c1 /src/PowerlevelsEditModels.cpp
parentTranslated using Weblate (French) (diff)
downloadnheko-11fa4821aa4ff93849b16dd3c9a7575533f6f296.tar.xz
Support rendering policy rules
Diffstat (limited to 'src/PowerlevelsEditModels.cpp')
-rw-r--r--src/PowerlevelsEditModels.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/PowerlevelsEditModels.cpp b/src/PowerlevelsEditModels.cpp
index 38ab42dc..fcfde26e 100644
--- a/src/PowerlevelsEditModels.cpp
+++ b/src/PowerlevelsEditModels.cpp
@@ -198,6 +198,13 @@ PowerlevelsTypeListModel::data(const QModelIndex &index, int role) const
         else if (type.type == "m.sticker")
             return tr("Send stickers");
 
+        else if (type.type == "m.policy.rule.user")
+            return tr("Ban users using policy rules");
+        else if (type.type == "m.policy.rule.room")
+            return tr("Ban rooms using policy rules");
+        else if (type.type == "m.policy.rule.server")
+            return tr("Ban servers using policy rules");
+
         else if (type.type == "m.space.child")
             return tr("Edit child rooms");
         else if (type.type == "m.space.parent")