After hundreds of debug processes, I've finally found the function which is used to do that. Here is screenshot:
0_1466761974079_upload-2e28b1a9-aa7b-4274-8c8b-c93717ae9008
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