Skip to content

Commit bfc99de

Browse files
committed
fix: ts errors
1 parent a0f04e3 commit bfc99de

File tree

3 files changed

+8
-10
lines changed

3 files changed

+8
-10
lines changed

package/expo-package/yarn.lock

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4772,10 +4772,9 @@ [email protected], stream-buffers@~2.2.0:
47724772
version "0.0.0"
47734773
uid ""
47744774

4775-
4776-
version "9.0.0-rc.8"
4777-
resolved "https://registry.yarnpkg.com/stream-chat/-/stream-chat-9.0.0-rc.8.tgz#e188e481841493584691ae491916843d0ef5f9cd"
4778-
integrity sha512-P+Ksnu1cQQfL1t2/QTJ5rr/z2Jehvd2ap41xZgtfbJssHSD7ahe14TCF/1L7q4jjaNlZcTtLcKXCWbbOdKjDcg==
4775+
"stream-chat@https://github.com/GetStream/stream-chat-js.git#ab43f541954904c4efcf797a4fac8b162e3f342d":
4776+
version "0.0.0-development"
4777+
resolved "https://github.com/GetStream/stream-chat-js.git#ab43f541954904c4efcf797a4fac8b162e3f342d"
47794778
dependencies:
47804779
"@types/jsonwebtoken" "^9.0.8"
47814780
"@types/ws" "^8.5.14"

package/native-package/yarn.lock

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3488,10 +3488,9 @@ statuses@~1.5.0:
34883488
version "0.0.0"
34893489
uid ""
34903490

3491-
3492-
version "9.0.0-rc.8"
3493-
resolved "https://registry.yarnpkg.com/stream-chat/-/stream-chat-9.0.0-rc.8.tgz#e188e481841493584691ae491916843d0ef5f9cd"
3494-
integrity sha512-P+Ksnu1cQQfL1t2/QTJ5rr/z2Jehvd2ap41xZgtfbJssHSD7ahe14TCF/1L7q4jjaNlZcTtLcKXCWbbOdKjDcg==
3491+
"stream-chat@https://github.com/GetStream/stream-chat-js.git#ab43f541954904c4efcf797a4fac8b162e3f342d":
3492+
version "0.0.0-development"
3493+
resolved "https://github.com/GetStream/stream-chat-js.git#ab43f541954904c4efcf797a4fac8b162e3f342d"
34953494
dependencies:
34963495
"@types/jsonwebtoken" "^9.0.8"
34973496
"@types/ws" "^8.5.14"

package/src/components/ChannelList/hooks/usePaginatedChannels.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,8 @@ export const usePaginatedChannels = ({
195195
const sortStr = useMemo(() => JSON.stringify(sort), [sort]);
196196

197197
useEffect(() => {
198-
let listener: ReturnType<typeof client.offlineDb.syncManager.onSyncStatusChange>;
199-
if (enableOfflineSupport) {
198+
let listener: ReturnType<typeof client.on>;
199+
if (client.offlineDb) {
200200
// Any time DB is synced, we need to update the UI with local DB channels first,
201201
// and then call queryChannels to ensure any new channels are added to UI.
202202
listener = client.offlineDb.syncManager.onSyncStatusChange(async (syncStatus) => {

0 commit comments

Comments
 (0)