Open source video conferencing app powered by LiveKit. Built with Django and React.
🩹(backend) invert operation order in participant handling
lebaudantoine18f4a117abfe
diff --git a/src/backend/core/services/lobby.py b/src/backend/core/services/lobby.pyindex 2ddaf80d..36f2fb35 100644--- a/src/backend/core/services/lobby.py+++ b/src/backend/core/services/lobby.py@@ -221,6 +221,12 @@ class LobbyService:color=color,)+ try:+ self.notify_participants(room_id=room_id)+ except LobbyNotificationError:+ # If room not created yet, there is no participants to notify+ pass+cache_key = self._get_cache_key(room_id, participant_id)cache.set(cache_key,@@ -228,12 +234,6 @@ class LobbyService:timeout=settings.LOBBY_WAITING_TIMEOUT,)- try:- self.notify_participants(room_id=room_id)- except LobbyNotificationError:- # If room not created yet, there is no participants to notify- pass-return participantdef _get_participant(