summary refs log tree commit diff
path: root/synapse/handlers/room.py
diff options
context:
space:
mode:
authorOlivier Wilkinson (reivilibre) <oliverw@matrix.org>2024-01-23 15:30:03 +0000
committerOlivier Wilkinson (reivilibre) <oliverw@matrix.org>2024-01-23 15:30:03 +0000
commitd5e213e16f98ff247d89bc6a4f5d2e494b0b9efe (patch)
tree823ab2bac8da6a8d2e9223aaf2227f41a852e096 /synapse/handlers/room.py
parentSpeed up e2e device keys queries for bot accounts (diff)
parentUpdate changelog (diff)
downloadsynapse-d5e213e16f98ff247d89bc6a4f5d2e494b0b9efe.tar.xz
Merge branch 'release-v1.100' into matrix-org-hotfixes
Diffstat (limited to 'synapse/handlers/room.py')
-rw-r--r--synapse/handlers/room.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/synapse/handlers/room.py b/synapse/handlers/room.py

index 59e6bb5f4a..780e620828 100644 --- a/synapse/handlers/room.py +++ b/synapse/handlers/room.py
@@ -1,6 +1,7 @@ # # This file is licensed under the Affero General Public License (AGPL) version 3. # +# Copyright 2016-2021 The Matrix.org Foundation C.I.C. # Copyright (C) 2023 New Vector, Ltd # # This program is free software: you can redistribute it and/or modify @@ -918,10 +919,8 @@ class RoomCreationHandler: if not self.config.roomdirectory.is_publishing_room_allowed( user_id, room_id, room_aliases ): - # Let's just return a generic message, as there may be all sorts of - # reasons why we said no. TODO: Allow configurable error messages - # per alias creation rule? - raise SynapseError(403, "Not allowed to publish room") + # allow room creation to continue but do not publish room + await self.store.set_room_is_public(room_id, False) directory_handler = self.hs.get_directory_handler() if room_alias: