Skip to content

Commit 1f5ff92

Browse files
authored
[feat] localCacheEnabled option should apply correcly (#1344)
[feat]: `localCacheEnabled` option should apply correcly Fixes [CLNP-6907](https://sendbird.atlassian.net/browse/CLNP-6907) ### Changelogs - Applied the `localCacheEnabled` option to be `false` ### Checklist Put an `x` in the boxes that apply. You can also fill these out after creating the PR. If unsure, ask the members. This is a reminder of what we look for before merging your code. - [x] **All tests pass locally with my changes** - [ ] **I have added tests that prove my fix is effective or that my feature works** - [ ] **Public components / utils / props are appropriately exported** - [ ] I have added necessary documentation (if appropriate) [CLNP-6907]: https://sendbird.atlassian.net/browse/CLNP-6907?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
1 parent b37cd22 commit 1f5ff92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/Sendbird/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export function initSDK({
6060
appId,
6161
modules: [new GroupChannelModule(), new OpenChannelModule()],
6262
// newInstance: isNewApp,
63-
localCacheEnabled: true,
63+
localCacheEnabled: typeof sdkInitParams.localCacheEnabled !== 'undefined' ? sdkInitParams.localCacheEnabled : true,
6464
});
6565

6666
if (customApiHost) params.customApiHost = customApiHost;

0 commit comments

Comments
 (0)