I’ve been struggling with a question if I am able to make messaging logics that will let me send a message to an email of a user when he has unread messages
Currently I have chat
In the chat when a user sends a message, it autonatically goes to unread messages in database, and goes out of there if the second user views the group with messages
I also have a list of chats where everything in a cell gets bold if a user has unread messages in the cell
so, how can I connect my current logics to sending email notifications?
Thanks in advance