Skip to content

Conversation

@AhyoungRyu
Copy link
Contributor

Addresses https://sendbird.atlassian.net/browse/AC-217

Currently, there's no way to customize sdk.init() parameters outside of UIKit since sdk.init() is called internally within UIKit.
So I'm going to add a new prop called sdkInitParams that allows passing custom parameters from outside of UIKit(e.g. chat-ai-widget).

Then user will be able to pass any SendbirdChatParams listed in https://sendbird.com/docs/chat/v4/javascript/ref/interfaces/_sendbird_chat.SendbirdChatParams.html via sdkInitParams.

Copy link
Contributor

@sravan-s sravan-s left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets add example to commit mesage 👍

new OpenChannelModule(),
],
newInstance: true,
...sdkInitParams,
Copy link
Contributor

@sravan-s sravan-s Jul 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

undefined/null check necessary?
Also, probably we dont want to override appID

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Trying spread from undefined happens nothing actually but always better to be explicit :) a2f0541

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmmm have crashed on me once before(dont remember the env)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants