diff options
author | lonkaars <l.leblansch@gmail.com> | 2021-04-23 11:40:36 +0200 |
---|---|---|
committer | lonkaars <l.leblansch@gmail.com> | 2021-04-23 11:40:36 +0200 |
commit | 6c080a2768325f4d0508a4ab6c6be1674ace2b20 (patch) | |
tree | 748a920c431757ffc28eb74b241b8869826bd57e /api | |
parent | 676b0a74efec49c2fc400e55af70a292457beb56 (diff) |
don't join room with user- if user_id is undefined
Diffstat (limited to 'api')
-rw-r--r-- | api/events.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/api/events.py b/api/events.py index 3097471..72ccb4d 100644 --- a/api/events.py +++ b/api/events.py @@ -7,4 +7,6 @@ from hierarchy import io_auth_required @io.on("connect") @io_auth_required("none") def connect(data, user_id): + if not user_id: return join_room("user-" + user_id) + |