feautre/IO-3377-Add-Notification-Tone-For-Messaging - remove wav, adjust

This commit is contained in:
Dave
2025-09-24 13:52:55 -04:00
parent dfd88308e0
commit e11260e8fc
3 changed files with 23 additions and 9 deletions

View File

@@ -1,8 +1,6 @@
// src/app/SoundWrapper.jsx
import { useEffect } from "react";
import { useTranslation } from "react-i18next";
import { useNotification } from "../contexts/Notifications/notificationContext.jsx";
import newMessageWav from "./../audio/messageTone.wav";
import { initNewMessageSound, unlockAudio } from "./../utils/soundManager";
export default function SoundWrapper({ children }) {
@@ -11,7 +9,7 @@ export default function SoundWrapper({ children }) {
useEffect(() => {
// Initialize base audio
initNewMessageSound(newMessageWav, 0.7);
initNewMessageSound("https://images.imex.online/app/messageTone.wav", 0.7);
// Show a one-time prompt when a play was blocked by autoplay policy
const onNeedsUnlock = () => {