I’ve got a use-case here which I’m not entirely sure how to approach.
One part of the application that I’m building involves a chat between the users and the admin.
Admin can create a chat between the admin and a user
Admin can create a chat between the admin and multiple users
User can create a chat between the admin and the user itself.
I’ve looked into Meteor-roles package to see if there’s anything i can make use of in there but I’m not entirely sure on how to approach this certain use-case when it comes to handling sub/pubs.
Something tells me it’s a matter of checking which role the current user has that wants to create a new chat - as well as pointing them to the user-id to set up a connection between them.