BUGFIX: Fixed database not storing the num_viewers for each stream

UI: Changed styling for components
This commit is contained in:
JustIceO7
2025-02-27 17:15:00 +00:00
parent 2854d7f754
commit 5ad416393e
8 changed files with 5 additions and 9 deletions

View File

@@ -56,7 +56,7 @@ def handle_leave(data) -> None:
if user_id:
remove_favourability_entry(data["user_id"], stream_id)
num_viewers = len(list(socketio.server.manager.get_participants("/", stream_id)))
update_viewers(str(user_id), str(stream_id))
update_viewers(stream_id, num_viewers)
emit("status",
{
"message": f"Welcome to the chat, stream_id: {stream_id}",