Skip to content

Commit

Permalink
removed sound from all messages
Browse files Browse the repository at this point in the history
  • Loading branch information
dendidibe committed Aug 10, 2023
1 parent 499ab32 commit 38bb967
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client-web/src/xmppHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,9 @@ export class XmppHandler {
const isCurrentUser =
msg.data.senderWalletAddress ===
useStoreState.getState().user.walletAddress;
playCoinSound(+msg.data.tokenAmount);
if (msg.data.isSystemMessage === "true") {
playCoinSound(+msg.data.tokenAmount);
}
if (!isCurrentUser) {
useStoreState.getState().updateCounterChatRoom(data.attrs.roomJid);
sendBrowserNotification(msg.body, () => {
Expand Down

0 comments on commit 38bb967

Please sign in to comment.