From e6613258411e4625c44833e8a468c615f4353d79 Mon Sep 17 00:00:00 2001 From: rayane-djouah <77965000+rayane-djouah@users.noreply.github.com> Date: Tue, 20 Feb 2024 10:05:20 +0100 Subject: [PATCH] Fix: When a user is mentioned, a sound is triggered. However, the current implementation plays the sound regardless of who is mentioned. --- src/libs/actions/User.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/actions/User.ts b/src/libs/actions/User.ts index 54efe4ba4d8e..f2507a28d576 100644 --- a/src/libs/actions/User.ts +++ b/src/libs/actions/User.ts @@ -526,7 +526,7 @@ function playSoundForMessageType(pushJSON: OnyxServerUpdate[]) { } // mention user - if ('html' in message && typeof message.html === 'string' && message.html.includes('')) { + if ('html' in message && typeof message.html === 'string' && message.html.includes(`@${currentEmail}`)) { return playSound(SOUNDS.ATTENTION); }