Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"react-dom": "^16.8.6 || ^17.0.0 || ^18.0.0"
},
"dependencies": {
"@sendbird/chat": "^4.8.4",
"@sendbird/chat": "^4.9.1",
"css-vars-ponyfill": "^2.3.2",
"date-fns": "^2.16.1",
"dompurify": "^3.0.1",
Expand Down
4 changes: 2 additions & 2 deletions src/lib/UIKitConfigProvider/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const UIKitConfigProvider = ({ storage, children, localConfigs }: UIKitConfigPro
try {
if (storage == null) {
const payload = await sdk.getUIKitConfiguration();
setRemoteConfigs(snakeToCamel(payload.json));
setRemoteConfigs(snakeToCamel(payload.json).configuration.uikitConfigurations);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I shouldn't have removed uikitConfigurations this one but I guess it's removed by mistake 😅

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Also, the json data format has been changed in the latest version of sendbird/chat; configuration is added in the root level of payload.

return;
}

Expand All @@ -48,7 +48,7 @@ const UIKitConfigProvider = ({ storage, children, localConfigs }: UIKitConfigPro
setRemoteConfigs(storedConfigs.uikitConfigurations);
} else {
const payload = await sdk.getUIKitConfiguration();
const updatedPayloed = await manager.update(snakeToCamel(payload.json));
const updatedPayloed = await manager.update(snakeToCamel(payload.json).configuration);
setRemoteConfigs(updatedPayloed.uikitConfigurations);
}
} catch (error) {
Expand Down
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2430,15 +2430,15 @@ __metadata:
languageName: node
linkType: hard

"@sendbird/chat@npm:^4.8.4":
version: 4.8.4
resolution: "@sendbird/chat@npm:4.8.4"
"@sendbird/chat@npm:^4.9.1":
version: 4.9.1
resolution: "@sendbird/chat@npm:4.9.1"
peerDependencies:
"@react-native-async-storage/async-storage": ^1.17.6
peerDependenciesMeta:
"@react-native-async-storage/async-storage":
optional: true
checksum: 5b21d8dc69c5b7886fcab2427c96b43b4475c51846c74490c34071fa0d12db36462e93bcfc1ff2082e846410a35834e7aaa8b26ccae42392b0fbaf6476cf7f26
checksum: 2896e23c714df847e7283fe7c99330515586bc5870821f7525931ebf68f9b4a7e1ef8bc709e2f2ffa49e18d92216e48f71c68a984c36cc5b6b4ee2238fc74b35
languageName: node
linkType: hard

Expand All @@ -2459,7 +2459,7 @@ __metadata:
"@rollup/plugin-node-resolve": ^7.1.3
"@rollup/plugin-replace": ^2.4.2
"@rollup/plugin-typescript": ^8.2.1
"@sendbird/chat": ^4.8.4
"@sendbird/chat": ^4.9.1
"@storybook/addon-actions": ^6.5.10
"@storybook/addon-docs": ^6.5.10
"@storybook/addon-links": ^6.5.10
Expand Down