File tree Expand file tree Collapse file tree 3 files changed +8
-10
lines changed
src/components/ChannelList/hooks Expand file tree Collapse file tree 3 files changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -4772,10 +4772,9 @@ stream-buffers@2.2.x, stream-buffers@~2.2.0:
47724772 version "0.0.0"
47734773 uid ""
47744774
4775- stream-chat@9.0.0-rc.8 :
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"
Original file line number Diff line number Diff line change @@ -3488,10 +3488,9 @@ statuses@~1.5.0:
34883488 version "0.0.0"
34893489 uid ""
34903490
3491- stream-chat@9.0.0-rc.8 :
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"
Original file line number Diff line number Diff 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 ) => {
You can’t perform that action at this time.
0 commit comments