Add m.room.history_visibility to newly created rooms' m.room.power_levels

This commit is contained in:
Erik Johnston 2015-07-06 13:09:16 +01:00
parent fb47c3cfbe
commit 1a3255b507
2 changed files with 2 additions and 0 deletions

View file

@ -575,6 +575,7 @@ class Auth(object):
levels_to_check = [
("users_default", []),
("events_default", []),
("state_default", []),
("ban", []),
("redact", []),
("kick", []),

View file

@ -213,6 +213,7 @@ class RoomCreationHandler(BaseHandler):
"events": {
EventTypes.Name: 100,
EventTypes.PowerLevels: 100,
EventTypes.RoomHistoryVisibility: 100,
},
"events_default": 0,
"state_default": 50,