Support rendering policy rules

This commit is contained in:
Nicolas Werner 2022-07-09 15:36:15 +02:00
parent 14c7e82846
commit 11fa4821aa
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9
6 changed files with 126 additions and 2 deletions

View file

@ -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")