Also default to PL invite=50 for private space creation

pull/21833/head
Michael Telatynski 2021-09-10 13:05:04 +01:00
parent 558b292c25
commit d46181385c
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ export const createSpace = async (
power_level_content_override: {
// Only allow Admins to write to the timeline to prevent hidden sync spam
events_default: 100,
...isPublic ? { invite: 0 } : {},
invite: isPublic ? 0 : 50,
},
room_alias_name: isPublic && alias ? alias.substr(1, alias.indexOf(":") - 1) : undefined,
topic,