Quoting my comment from here here (just replace "Mark" with "Matt"):
Let's put it this way: If you're at a party, and someone yells "Hey Mark!", you'd turn around. That's the principle chat replies are modeled after.
I see your confusion with the first "@Matt" in your screenshot. That's just the orange highlighting, though; you did not get a notification for that (it was a direct reply to a message by the other Mark). May be worth to improve that highlighting logic.
As for the second one – well, they said "@Matt" (and didn't use a direct reply), and you are a user named "Matt" who was (either at that very time, or at least recently) in the room. Hence you were notified (just like the other Matt was).
See here here for the precise rules as to when a user gets a notification for a @mention of their name.
Quoting my comment from here (just replace "Mark" with "Matt"):
Let's put it this way: If you're at a party, and someone yells "Hey Mark!", you'd turn around. That's the principle chat replies are modeled after.
I see your confusion with the first "@Matt" in your screenshot. That's just the orange highlighting, though; you did not get a notification for that (it was a direct reply to a message by the other Mark). May be worth to improve that highlighting logic.
As for the second one – well, they said "@Matt" (and didn't use a direct reply), and you are a user named "Matt" who was (either at that very time, or at least recently) in the room. Hence you were notified (just like the other Matt was).
See here for the precise rules as to when a user gets a notification for a @mention of their name.
Quoting my comment from here (just replace "Mark" with "Matt"):
Let's put it this way: If you're at a party, and someone yells "Hey Mark!", you'd turn around. That's the principle chat replies are modeled after.
I see your confusion with the first "@Matt" in your screenshot. That's just the orange highlighting, though; you did not get a notification for that (it was a direct reply to a message by the other Mark). May be worth to improve that highlighting logic.
As for the second one – well, they said "@Matt" (and didn't use a direct reply), and you are a user named "Matt" who was (either at that very time, or at least recently) in the room. Hence you were notified (just like the other Matt was).
See here for the precise rules as to when a user gets a notification for a @mention of their name.
Quoting my comment from here here (just replace "Mark" with "Matt"):
Let's put it this way: If you're at a party, and someone yells "Hey Mark!", you'd turn around. That's the principle chat replies are modeled after.
I see your confusion with the first "@Matt" in your screenshot. That's just the orange highlighting, though; you did not get a notification for that (it was a direct reply to a message by the other Mark). May be worth to improve that highlighting logic.
As for the second one – well, they said "@Matt" (and didn't use a direct reply), and you are a user named "Matt" who was (either at that very time, or at least recently) in the room. Hence you were notified (just like the other Matt was).
See here here for the precise rules as to when a user gets a notification for a @mention of their name.
Quoting my comment from here (just replace "Mark" with "Matt"):
Let's put it this way: If you're at a party, and someone yells "Hey Mark!", you'd turn around. That's the principle chat replies are modeled after.
I see your confusion with the first "@Matt" in your screenshot. That's just the orange highlighting, though; you did not get a notification for that (it was a direct reply to a message by the other Mark). May be worth to improve that highlighting logic.
As for the second one – well, they said "@Matt" (and didn't use a direct reply), and you are a user named "Matt" who was (either at that very time, or at least recently) in the room. Hence you were notified (just like the other Matt was).
See here for the precise rules as to when a user gets a notification for a @mention of their name.
Quoting my comment from here (just replace "Mark" with "Matt"):
Let's put it this way: If you're at a party, and someone yells "Hey Mark!", you'd turn around. That's the principle chat replies are modeled after.
I see your confusion with the first "@Matt" in your screenshot. That's just the orange highlighting, though; you did not get a notification for that (it was a direct reply to a message by the other Mark). May be worth to improve that highlighting logic.
As for the second one – well, they said "@Matt" (and didn't use a direct reply), and you are a user named "Matt" who was (either at that very time, or at least recently) in the room. Hence you were notified (just like the other Matt was).
See here for the precise rules as to when a user gets a notification for a @mention of their name.
Quoting my comment from here (just replace "Mark" with "Matt"):
Let's put it this way: If you're at a party, and someone yells "Hey Mark!", you'd turn around. That's the principle chat replies are modeled after.
I see your confusion with the first "@Matt" in your screenshot. That's just the orange highlighting, though; you did not get a notification for that (it was a direct reply to a message by the other Mark). May be worth to improve that highlighting logic.
As for the second one – well, they said "@Matt" (and didn't use a direct reply), and you are a user named "Matt" who was (either at that very time, or at least recently) in the room. Hence you were notified (just like the other Matt was).
See here for the precise rules as to when a user gets a notification for a @mention of their name.