Skip to content

Commit

Permalink
Improve default_power_level_content_override documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
benbz committed Jul 17, 2024
1 parent 5884f0a commit 8f7649a
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog.d/17451.doc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Improve documentation on default_power_level_content_override.
32 changes: 32 additions & 0 deletions docs/usage/configuration/config_documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -4134,6 +4134,38 @@ default_power_level_content_override:
trusted_private_chat: null
public_chat: null
```

The default power levels for each preset are:
```yaml
"m.room.name": 50
"m.room.power_levels": 100
"m.room.history_visibility": 100
"m.room.canonical_alias": 50
"m.room.avatar": 50
"m.room.tombstone": 100
"m.room.server_acl": 100
"m.room.encryption": 100
```

So a complete example where the default power-levels for a preset are maintained
but the power level for a new key is set is:
```yaml
default_power_level_content_override:
private_chat:
events:
"com.example.foo" : 0
"m.room.name": 50
"m.room.power_levels": 100
"m.room.history_visibility": 100
"m.room.canonical_alias": 50
"m.room.avatar": 50
"m.room.tombstone": 100
"m.room.server_acl": 100
"m.room.encryption": 100
trusted_private_chat: null
public_chat: null
```

---
### `forget_rooms_on_leave`

Expand Down

0 comments on commit 8f7649a

Please sign in to comment.