We'll get last comment from database and store the timestamp in the user's local storage. When a user goes on a page, we'll check whether the user's last comment timestamp is the last. If not, add the badge.
The users last comment timestamp gets updated when a new comment arrives on the smack board page.
We'll get last comment from database and store the timestamp in the user's local storage. When a user goes on a page, we'll check whether the user's last comment timestamp is the last. If not, add the badge.
The users last comment timestamp gets updated when a new comment arrives on the smack board page.