mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-31 02:04:19 -04:00
Default to private
room visibility rather than public
when a client does not specify one, according to spec. (#12350)
This commit is contained in:
parent
336bff1104
commit
c4cf916ed7
5 changed files with 15 additions and 7 deletions
|
@ -771,7 +771,9 @@ class RoomCreationHandler:
|
|||
% (user_id,),
|
||||
)
|
||||
|
||||
visibility = config.get("visibility", None)
|
||||
# The spec says rooms should default to private visibility if
|
||||
# `visibility` is not specified.
|
||||
visibility = config.get("visibility", "private")
|
||||
is_public = visibility == "public"
|
||||
|
||||
room_id = await self._generate_room_id(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue