Chat functionality(Reverse)

Hi everyone hope you all are doing good.

I am stuck in a situation, the thing is that I am making a app where user can switch their usrtypes.
I am having 2 user types(client and professional). Now the thing is that client can chat with professionals and vice versa. But when client become professional then he will able to chat with clients and when processional become client the he will able to chat with professional. How can I achieve this?

This topic was automatically closed after 70 days. New replies are no longer allowed.