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 = [ levels_to_check = [
("users_default", []), ("users_default", []),
("events_default", []), ("events_default", []),
("state_default", []),
("ban", []), ("ban", []),
("redact", []), ("redact", []),
("kick", []), ("kick", []),

View File

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