-
Notifications
You must be signed in to change notification settings - Fork 143
[CLNP-6032]Display members' name instead of default AI chatbot channel name #1287
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
Conversation
✅ Deploy Preview for sendbird-uikit-react ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
|
|
||
| const channelName = useMemo(() => { | ||
| if (channel?.name && channel.name !== 'Group Channel') { | ||
| if (channel?.name && channel.name !== 'Group Channel' && channel.name !== 'AI Chatbot Widget Channel') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's manage this AI Chatbot Widget Channel string separately in somewhere else so we don't need to compare the string directly every time.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, shall we create a separate util function for getting this condition ?
if (channel?.name && channel.name !== 'Group Channel' && channel.name !== 'AI Chatbot Widget Channel') {
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
isDefaultChannelName() is added in src/utils/index.ts. Also, DEFAULT_GROUP_CHANNEL_NAME and DEFAULT_AI_CHATBOT_CHANNEL_NAME are introduced too. But those consts are only used in isDefaultChannelName() for now.
AhyoungRyu
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comments for other files.
https://sendbird.atlassian.net/browse/CLNP-6032
Changelog
Group Channeldoes.