Give server ACLs a name in 'roles & permissions' tab

The default power levels event includes them, so this helps avoid them showing up as "Send m.room.server_acl events".
This commit is contained in:
Travis Ralston 2021-04-08 19:20:08 -06:00
parent 28d12016b7
commit 073c05543c
2 changed files with 3 additions and 0 deletions

View file

@ -34,6 +34,7 @@ const plEventsToLabels = {
[EventType.RoomTopic]: _td("Change topic"),
[EventType.RoomTombstone]: _td("Upgrade the room"),
[EventType.RoomEncryption]: _td("Enable room encryption"),
[EventType.RoomServerAcl]: _td("Change server ACLs"),
// TODO: Enable support for m.widget event type (https://github.com/vector-im/element-web/issues/13111)
"im.vector.modular.widgets": _td("Modify widgets"),
@ -49,6 +50,7 @@ const plEventsToShow = {
[EventType.RoomTopic]: {isState: true},
[EventType.RoomTombstone]: {isState: true},
[EventType.RoomEncryption]: {isState: true},
[EventType.RoomServerAcl]: {isState: true},
// TODO: Enable support for m.widget event type (https://github.com/vector-im/element-web/issues/13111)
"im.vector.modular.widgets": {isState: true},