summary refs log tree commit diff
path: root/synapse/handlers/register.py
diff options
context:
space:
mode:
authorNeil Johnson <neil@fragile.org.uk>2018-10-13 21:14:21 +0100
committerNeil Johnson <neil@fragile.org.uk>2018-10-13 21:14:21 +0100
commit1ccafb0c5e3e6c9c64ce231163e7c73f05b910fa (patch)
tree7f4602f2cc8df31fb05352d3cbcb0b2e0e23efa0 /synapse/handlers/register.py
parentimprove auto room join logic, comments and tests (diff)
downloadsynapse-1ccafb0c5e3e6c9c64ce231163e7c73f05b910fa.tar.xz
no need to join room if creator
Diffstat (limited to '')
-rw-r--r--synapse/handlers/register.py3
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)