diff options
author | Neil Johnson <neil@fragile.org.uk> | 2018-10-13 21:14:21 +0100 |
---|---|---|
committer | Neil Johnson <neil@fragile.org.uk> | 2018-10-13 21:14:21 +0100 |
commit | 1ccafb0c5e3e6c9c64ce231163e7c73f05b910fa (patch) | |
tree | 7f4602f2cc8df31fb05352d3cbcb0b2e0e23efa0 /synapse/handlers/register.py | |
parent | improve auto room join logic, comments and tests (diff) | |
download | synapse-1ccafb0c5e3e6c9c64ce231163e7c73f05b910fa.tar.xz |
no need to join room if creator
Diffstat (limited to '')
-rw-r--r-- | synapse/handlers/register.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/handlers/register.py b/synapse/handlers/register.py index 2b269ab692..2f7bdb0a20 100644 --- a/synapse/handlers/register.py +++ b/synapse/handlers/register.py @@ -246,7 +246,8 @@ class RegistrationHandler(BaseHandler): }, ratelimit=False, ) - yield self._join_user_to_room(fake_requester, r) + else: + yield self._join_user_to_room(fake_requester, r) except Exception as e: logger.error("Failed to join new user to %r: %r", r, e) |