@yariplus thank you, this helped me a lot!
another question: is it possible somehow to set the chat-attribute 'unread' from true to false. 🤞
at the moment it only switches to false when i reply in the chat.
for many new forums, the hard part is to acquire users. if there is a "Invite" button in the header when user click it it allow user to input a few email address and a message , and invite those user to register. that will be very useful. if nobody work on it, I have interest to give a try. if anybody can give me some advice which plugin i can follow that would be great.
Backend you might use
src/emailer.js, front end, you can just use JS to add a button anywhere you want
Try using this library for starters: https://github.com/NodeBB/nodebb-plugin-quickstart