@pichalite I just tried it. Unfortunately, it didn't activate when I sent a message to my test account. (I had console.log dump out whatever the first param was)
This would've been great if it solved the problem, too.
would it be possible to create a plugin that allows a user to send another user an attachment (zip, pdf, doc etc..) through the chat? If anybody could point me in the right direction that would be awesome! thanks
Still new to NodeBB, but I think the chat is handled by Redis/MongoDB. While you can store files in MongoDB using GridFS, I would think a great way to tackle that would be to have the plugin upload the file to storage (like AWS S3) and then include in the body of the message a link to the downloaded file. Permissions could be set at upload to only allow members of the chat access to the file.
I would also be very interested in this feature!