We currently bypass notif settings for when a user is @ mentioned, so they will get the notification even if they have backgrounded the chat. Now that we allow users to be @ mentioned by their ENS name, we need to update the conditions for userWasMentioned to detect if a user is mentioned.
This should be a pretty simple change, but I don't have the most context on notifs in general. Here, the idea is we:
- Get the resolved ENS name for the raw username provided (if exists)
- Instead of just checking if the raw username was mentioned, we should also check if the ENS name was mentioned
- If either of the two conditions are true, we consider the user to be mentioned (as opposed to just the raw username being mentioned)
Addressess https://linear.app/comm/issue/ENG-5074/update-sendpushnotif-to-detect-mention-for-a-ens-name
Depends on D10389