Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: Display User Roles Next to Message Headers in EmbeddedChat #737

Closed
1 task done
SinghaAnirban005 opened this issue Dec 26, 2024 · 3 comments · Fixed by #738
Closed
1 task done

Feat: Display User Roles Next to Message Headers in EmbeddedChat #737

SinghaAnirban005 opened this issue Dec 26, 2024 · 3 comments · Fixed by #738
Labels
enhancement New feature or request

Comments

@SinghaAnirban005
Copy link
Contributor

SinghaAnirban005 commented Dec 26, 2024

As an EmbeddedChat developer

I need to:
I need to implement a feature to display user roles such as Admin, Leader, Moderator, and Owner next to the header in messages.

So That:
members can easily distinguish user roles within the chat, improving clarity and context during discussions.

Acceptance Criteria

  • Display the corresponding user role specific to a channel next to the sender's header in the message UI, for each role.
@SinghaAnirban005 SinghaAnirban005 added the enhancement New feature or request label Dec 26, 2024
@SinghaAnirban005
Copy link
Contributor Author

Am working on this !

@abirc8010
Copy link
Contributor

abirc8010 commented Dec 26, 2024

Hey @SinghaAnirban005 this feature was implemented after this PR . However, when changing the showRoles state to true, the roles are not displayed. I believe adding showRoles as a dependency to this useEffect might fix this issue.

image

@SinghaAnirban005
Copy link
Contributor Author

Thank you abir brother .. Actually it was fetching the permission for showing roles from the wrong object key

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
2 participants