diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2022-07-09 15:36:15 +0200 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2022-07-09 15:36:28 +0200 |
commit | 11fa4821aa4ff93849b16dd3c9a7575533f6f296 (patch) | |
tree | b1952709198aaa9a2c376ad4e6efea786c1cd2c1 /src/PowerlevelsEditModels.cpp | |
parent | Translated using Weblate (French) (diff) | |
download | nheko-11fa4821aa4ff93849b16dd3c9a7575533f6f296.tar.xz |
Support rendering policy rules
Diffstat (limited to 'src/PowerlevelsEditModels.cpp')
-rw-r--r-- | src/PowerlevelsEditModels.cpp | 7 |
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") |