Hi There. I am using the Headstart template as a guide to build chat functionality in my app. I want to show when new chat messages are available and unread and also add a counter to show how many messages are unread. The header in the template does have a bell with notifications, but no logic. What would the logic be to show a notification for new messages together with a counter showing the number of new messages. My database setup for messages and conversations is exactly the same as set out in the Headstart 3.0 template.
Thanks