Skip to content
This repository was archived by the owner on Oct 30, 2025. It is now read-only.

Commit ad987dc

Browse files
committed
[FIX] Sound missing in notifications
1 parent 538ea59 commit ad987dc

4 files changed

Lines changed: 4 additions & 0 deletions

File tree

client/public/chime.mp3

5.13 KB
Binary file not shown.

client/public/door.mp3

29.4 KB
Binary file not shown.

client/public/index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
</head>
2525
<body>
2626
<noscript>You need to enable JavaScript to run this app.</noscript>
27+
<audio id="custom-sound-chime" src="/chime.mp3"></audio>
28+
<audio id="custom-sound-door" src="/door.mp3"></audio>
2729
<div id="root"></div>
2830
<!--
2931
This HTML file is a template.

client/src/components/SignedLeftSidebar/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ export default function SignedLeftSidebar(props) {
127127
if (fromOpenedRoom && hasFocus) {
128128
break;
129129
}
130+
document.getElementById("custom-sound-chime").play();
130131
let noty = new Notification(`${title}`, {
131132
body: `${text}`,
132133
});
@@ -169,6 +170,7 @@ export default function SignedLeftSidebar(props) {
169170
rooms["conversations"] &&
170171
!rooms["conversations"][e.data.data._id]
171172
) {
173+
document.getElementById("custom-sound-door").play();
172174
addRoom(e.data.data);
173175
}
174176
break;

0 commit comments

Comments
 (0)