After hundreds of debug processes, I've finally found the function which is used to do that. Here is screenshot:
If a person send us a chat message while we are away, 2 notifications are displayed about the message, one in the chat menu and one inside the normal notifications panel?
Chat notifications should not be displayed along with normal notifications. That is why there is a chat notification area, right?
Here is the example from this forum