matrix-org / synapse

Synapse: Matrix homeserver written in Python/Twisted.
https://matrix-org.github.io/synapse
Apache License 2.0
11.79k stars 2.13k forks source link

Enable bridges/app services to specify a space/create a space #10025

Closed hanthor closed 3 years ago

hanthor commented 3 years ago

Description

There is/was a way to register a bridge to add users to a specific community. We need similar functionality in spaces.

Steps to reproduce

erikjohnston commented 3 years ago

I'm not sure I totally understand what you mean? Spaces are just rooms, so application services should be able to create them as normal?

hanthor commented 3 years ago

Is there a way to do it from namespaces in the registration.yml?

id: whatsapp
namespaces:
    users:
    -   exclusive: true
        regex: ***@***.***_[0-9]+:matrix\.domain$
    -   exclusive: true
        regex: ***@***.***:matrix\.domain$
rate_limited: false
sender_localpart: _bot_whatsappbot
erikjohnston commented 3 years ago

If you want to just add created rooms to a space you can do it as normal using the AS API, without needing to add anything to the registration.yml?

richvdh commented 3 years ago

closing this pending the requested information.