Open source video conferencing app powered by LiveKit. Built with Django and React.
🐛(frontend) play the waiting room notification sound on every arrival
tanguy chenier771f58c0aa2c
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 7179e310..84d0ab44 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -26,6 +26,7 @@ and this project adheres to### Fixed- 🐛(backend) report the app release to Sentry instead of "NA"+- 🐛(frontend) play the waiting room notification sound on every arrival- 🐛(backend) acknowledge unknown LiveKit webhook events instead of 422- 🔒️(backend) enforce display name setting on rename API- 🔒️(backend) reject inactive users in resource server backenddiff --git a/src/frontend/src/features/notifications/components/WaitingParticipantNotification.tsx b/src/frontend/src/features/notifications/components/WaitingParticipantNotification.tsxindex bead7e36..097229b8 100644--- a/src/frontend/src/features/notifications/components/WaitingParticipantNotification.tsx+++ b/src/frontend/src/features/notifications/components/WaitingParticipantNotification.tsx@@ -34,6 +34,15 @@ export const WaitingParticipantNotification = () => {const isParticipantListEmpty = (p?: WaitingParticipant[]) => p?.length == 0useEffect(() => {+ const previousIds = new Set(prevWaitingParticipant?.map(({ id }) => id))+ const hasNewWaitingParticipant = waitingParticipants.some(+ ({ id }) => !previousIds.has(id)+ )++ if (hasNewWaitingParticipant) {+ triggerNotificationSound(NotificationType.ParticipantWaiting)+ }+// Show notification when the first participant enters the waiting roomif (!isParticipantListEmpty(waitingParticipants) &&@@ -42,8 +51,6 @@ export const WaitingParticipantNotification = () => {) {setShowQuickActionsMessage(true)- triggerNotificationSound(NotificationType.ParticipantJoined)-if (timerRef.current !== null) {clearTimeout(timerRef.current)}diff --git a/src/frontend/src/features/notifications/hooks/useSoundNotification.tsx b/src/frontend/src/features/notifications/hooks/useSoundNotification.tsxindex cf052f42..0fa18eca 100644--- a/src/frontend/src/features/notifications/hooks/useSoundNotification.tsx+++ b/src/frontend/src/features/notifications/hooks/useSoundNotification.tsx@@ -11,7 +11,7 @@ export const useNotificationSound = () => {participantJoined: [0, 1150],handRaised: [1400, 180],messageReceived: [1580, 300],- waiting: [2039, 710],+ participantWaiting: [2039, 710],success: [2740, 1304],},volume: notificationsSnap.soundNotificationVolume,diff --git a/src/frontend/src/locales/de/settings.json b/src/frontend/src/locales/de/settings.jsonindex 8060155e..5d7b8610 100644--- a/src/frontend/src/locales/de/settings.json+++ b/src/frontend/src/locales/de/settings.json@@ -102,6 +102,9 @@},"messageReceived": {"label": "Nachricht erhalten"+ },+ "participantWaiting": {+ "label": "Person im Warteraum"}}},diff --git a/src/frontend/src/locales/en/settings.json b/src/frontend/src/locales/en/settings.jsonindex 79cb983f..0ca3cac6 100644--- a/src/frontend/src/locales/en/settings.json+++ b/src/frontend/src/locales/en/settings.json@@ -102,6 +102,9 @@},"messageReceived": {"label": "Message received"+ },+ "participantWaiting": {+ "label": "Participant waiting"}}},diff --git a/src/frontend/src/locales/es/settings.json b/src/frontend/src/locales/es/settings.jsonindex 96ae7d12..784e2c7e 100644--- a/src/frontend/src/locales/es/settings.json+++ b/src/frontend/src/locales/es/settings.json@@ -102,6 +102,9 @@},"messageReceived": {"label": "Un mensaje recibido"+ },+ "participantWaiting": {+ "label": "Una persona en la sala de espera"}}},diff --git a/src/frontend/src/locales/fr/settings.json b/src/frontend/src/locales/fr/settings.jsonindex 85b8a944..2f61798b 100644--- a/src/frontend/src/locales/fr/settings.json+++ b/src/frontend/src/locales/fr/settings.json@@ -102,6 +102,9 @@},"messageReceived": {"label": "Un message reçu"+ },+ "participantWaiting": {+ "label": "Une personne en salle d’attente"}}},diff --git a/src/frontend/src/locales/nl/settings.json b/src/frontend/src/locales/nl/settings.jsonindex 331c3a2e..b73e509f 100644--- a/src/frontend/src/locales/nl/settings.json+++ b/src/frontend/src/locales/nl/settings.json@@ -102,6 +102,9 @@},"messageReceived": {"label": "Bericht ontvangen"+ },+ "participantWaiting": {+ "label": "Deelnemer in de wachtkamer"}}},diff --git a/src/frontend/src/stores/notifications.ts b/src/frontend/src/stores/notifications.tsindex 03bcfad3..ffb3aea6 100644--- a/src/frontend/src/stores/notifications.ts+++ b/src/frontend/src/stores/notifications.ts@@ -16,6 +16,7 @@ const DEFAULT_STATE: State = {[NotificationType.ParticipantJoined, true],[NotificationType.HandRaised, true],[NotificationType.MessageReceived, true],+ [NotificationType.ParticipantWaiting, true],])),soundNotificationVolume: 0.1,