fix missing if

pull/226/head
Aevann 2024-04-04 04:15:02 +02:00
parent 3e75f996b9
commit 9a9f88428c
1 changed files with 2 additions and 1 deletions

View File

@ -315,7 +315,8 @@ def refresh_online(room):
data = [list(online[room].values()), muted]
emit("online", data, room=room, broadcast=True)
cache.set('loggedin_chat', len(online[room]), timeout=86400)
if room == "chat":
cache.set('loggedin_chat', len(online[room]), timeout=86400)
@socketio.on('connect')
@auth_required_socketio