Skip to content

Commit

Permalink
Fix: When a user is mentioned, a sound is triggered. However, the cur…
Browse files Browse the repository at this point in the history
…rent implementation plays the sound regardless of who is mentioned.
  • Loading branch information
rayane-djouah committed Feb 20, 2024
1 parent 7aa91a6 commit e661325
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/actions/User.ts
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ function playSoundForMessageType(pushJSON: OnyxServerUpdate[]) {
}

// mention user
if ('html' in message && typeof message.html === 'string' && message.html.includes('<mention-user>')) {
if ('html' in message && typeof message.html === 'string' && message.html.includes(`<mention-user>@${currentEmail}</mention-user>`)) {
return playSound(SOUNDS.ATTENTION);
}

Expand Down

0 comments on commit e661325

Please sign in to comment.