Skip to content

Conversation

@git-babel
Copy link
Contributor

@git-babel git-babel commented Dec 12, 2024

https://sendbird.atlassian.net/browse/CLNP-6032

Changelog

  • Display members' name instead of default AI chatbot channel name, like the Group Channel does.

@netlify
Copy link

netlify bot commented Dec 12, 2024

Deploy Preview for sendbird-uikit-react ready!

Name Link
🔨 Latest commit d197368
🔍 Latest deploy log https://app.netlify.com/sites/sendbird-uikit-react/deploys/675a791fda8c91000842de2a
😎 Deploy Preview https://deploy-preview-1287--sendbird-uikit-react.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

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') {
Copy link
Contributor

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.

Copy link
Contributor

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') {

Copy link
Contributor Author

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.

Copy link
Contributor

@AhyoungRyu AhyoungRyu left a 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.

@git-babel git-babel merged commit 6cb6ba0 into main Dec 12, 2024
10 checks passed
@AhyoungRyu AhyoungRyu deleted the fix/CLNP-6032 branch December 12, 2024 06:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants