…the observer works but the data set seems incomplete.
What we need is to be able to check who’s a moderator and who’s not. The issue is that the role array and the permission array are empty.
The only way to get channel members roles is to use the channelMemberQuery, but it would mean that I would need to send the query every X seconds, and then check wether the user id is included in the list.
Thank you for the detailed answer.
I’ll try this asap and will let you informed.
However, I would rather use sockets for this task since I would like to get the real time update wether the member status changes.
[EDIT]: After discussing the issue with my team , our need is that each user should be able to detect in real time wether a role has been granted to their account in order to display the relevant possible actions on the UI given their userId.
Hope I’m being clear on what we 're trying to achieve.
[EDIT]: Finally, the user observer seems to work but only for global roles.
Roles and permissions arrays stay empty when promoting a user for a particular channel.