If outside app, also notification IF person has not begun chat yet.
Example:
Krishna sends me a message, I receive notification. He sends again (no more notification).
Nishanth sends me a message, another notification.
Also, the chat could have begun already. In that case we should also send a notification. So not necessarily you can only verify if the chat history is empty.
Etc etc. Hope that was clear, let me know if you want further explanation.
If outside app, also notification IF person has not begun chat yet. Example: Krishna sends me a message, I receive notification. He sends again (no more notification). Nishanth sends me a message, another notification.
Also, the chat could have begun already. In that case we should also send a notification. So not necessarily you can only verify if the chat history is empty.
Etc etc. Hope that was clear, let me know if you want further explanation.