This commit is contained in:
Timothy Jaeryang Baek committed 2026-07-26 21:55:13 -04:00
1 parent 0cbf337679
commit d14fddf254
1 file changed
+2 -1
+2 -1
View File
@@ -394,7 +394,8 @@ async def user_join(sid, data):
), ),
'last_seen_at': int(time.time()), 'last_seen_at': int(time.time()),
} }
await sio.enter_room(sid, f'user:{user.id}')
await sio.enter_room(sid, f'user:{user.id}')
# Join all the channels only if user has channels permission # Join all the channels only if user has channels permission
if user.role == 'admin' or await has_permission(user.id, 'features.channels'): if user.role == 'admin' or await has_permission(user.id, 'features.channels'):