mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 10:56:06 -04:00
Add config option to auto-join new users to rooms
New users who register on the server will be dumped into all rooms in auto_join_rooms in the config.
This commit is contained in:
parent
99a6c9dbf2
commit
c05e6015cc
2 changed files with 40 additions and 0 deletions
|
@ -41,6 +41,8 @@ class RegistrationConfig(Config):
|
|||
self.allow_guest_access and config.get("invite_3pid_guest", False)
|
||||
)
|
||||
|
||||
self.auto_join_rooms = config.get("auto_join_rooms", [])
|
||||
|
||||
def default_config(self, **kwargs):
|
||||
registration_shared_secret = random_string_with_symbols(50)
|
||||
|
||||
|
@ -70,6 +72,10 @@ class RegistrationConfig(Config):
|
|||
- matrix.org
|
||||
- vector.im
|
||||
- riot.im
|
||||
|
||||
# Users who register on this homeserver will automatically be joined to these rooms
|
||||
#auto_join_rooms:
|
||||
# - "#example:example.com"
|
||||
""" % locals()
|
||||
|
||||
def add_arguments(self, parser):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue