feautre/IO-3377-Add-Notification-Tone-For-Messaging - remove wav, adjust
This commit is contained in:
@@ -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 = () => {
|
||||
|
||||
Reference in New Issue
Block a user