I love the new Chat feature. I to implement this into our app but I only want the Admin to be able to chat with the users. So basically the Admin would be able to look up a username and chat with them but the basic user would not be able to find any of the users to chat back with.
What would be the best way to implement something like this?
I also want to create an message inbox type of functionality with similar functionality. Where the Admin communicates with the basic users but they cannot communicate with anyone but the Admin.
2 Answer(s)
-
0
Hi,
After a friendship created between admin and a simple user (by admin of course), can they chat without a restriction. For example, can a simple user write back to admin anytime he/she wants ?
If so, you can create a permisison "CanCreatesFriendship" and give it to only admin users or admin role. You need to hide user search input in chat view and need to control this permission while creating a friendship in FriendshipManager.
In this way, only users with this permission can search users to chat with and can create friendships.
If you need to add some extra rules like "simple users cannot write back to admin if 1 day passed after the last message", then we need to think about it more deeply.
About message inbox type functionality, we are also thinking such a feature but probably it will be in AspNet Core and angular version and we dont have an estimated date yet.
-
0
Thats a good idea. I do like the expiring idea for a future release but for now the permissions based way should work good.
Thank you