File tree Expand file tree Collapse file tree 4 files changed +17
-13
lines changed
src/contexts/channelsStateContext Expand file tree Collapse file tree 4 files changed +17
-13
lines changed Original file line number Diff line number Diff line change @@ -7530,10 +7530,10 @@ statuses@~1.5.0:
75307530 resolved "https://registry.yarnpkg.com/statuses/-/statuses-1.5.0.tgz#161c7dac177659fd9811f43771fa99381478628c"
75317531 integrity sha512-OpZ3zP+jT1PI7I8nemJX4AKmAX070ZkYPVWV/AaKTJl+tXCTGyVdC1a4SL8RUQYEwk/f34ZX8UTykN68FwrqAA==
75327532
7533- stream-chat-react-native-core@6.6.8 :
7534- version "6.6.8 "
7535- resolved "https://registry.yarnpkg.com/stream-chat-react-native-core/-/stream-chat-react-native-core-6.6.8 .tgz#483ade63ba051426480ab2dfd8ab3b248b90ae88 "
7536- integrity sha512-F8S70DHaiit6BEdKOkSMHq2bjMONhrouvJ+szBQuE430EJDgUlc2VErHk3yJCzqIt5lwfVZktjHuqSIOGVg5LQ ==
7533+ stream-chat-react-native-core@6.7.3 :
7534+ version "6.7.3 "
7535+ resolved "https://registry.yarnpkg.com/stream-chat-react-native-core/-/stream-chat-react-native-core-6.7.3 .tgz#7e213c03a7414c85ec4ba9da247d9703878ab520 "
7536+ integrity sha512-dYoYkVah7l4bmkI0vl7Ma6qD+xjsmeFWOdz7EVwbtR+B3HPMsgz8eRAmBj/p2xcSANxh1bPRD0iLlvD30vXyzg ==
75377537 dependencies :
75387538 " @gorhom/bottom-sheet" " ^5.1.1"
75397539 dayjs "1.10.5"
Original file line number Diff line number Diff line change 47334733 resolved "https://registry.yarnpkg.com/stream-buffers/-/stream-buffers-2.2.0.tgz#91d5f5130d1cef96dcfa7f726945188741d09ee4"
47344734 integrity sha512-uyQK/mx5QjHun80FLJTfaWE7JtwfRMKBLkMne6udYOmvH0CawotVa7TfgYHzAnpphn4+TweIx1QKMnRIbipmUg==
47354735
4736- 4737- version "6.7.2 "
4738- resolved "https://registry.yarnpkg.com/stream-chat-react-native-core/-/stream-chat-react-native-core-6.7.2 .tgz#955e048b80c55175db084ccbb8519f52ef4bb00c "
4739- integrity sha512-WJFOCfQ7Xpn8Lr4AE6hUh4Qhrn1eGzsoAcKmL8eSoB/etxdNllOyZ3zrwvZgyy+KIEg9bcX4y+3OWtdKW6qfsA ==
4736+ 4737+ version "6.7.3 "
4738+ resolved "https://registry.yarnpkg.com/stream-chat-react-native-core/-/stream-chat-react-native-core-6.7.3 .tgz#7e213c03a7414c85ec4ba9da247d9703878ab520 "
4739+ integrity sha512-dYoYkVah7l4bmkI0vl7Ma6qD+xjsmeFWOdz7EVwbtR+B3HPMsgz8eRAmBj/p2xcSANxh1bPRD0iLlvD30vXyzg ==
47404740 dependencies :
47414741 " @gorhom/bottom-sheet" " ^5.1.1"
47424742 dayjs "1.10.5"
Original file line number Diff line number Diff line change @@ -3409,10 +3409,10 @@ statuses@~1.5.0:
34093409 resolved "https://registry.yarnpkg.com/statuses/-/statuses-1.5.0.tgz#161c7dac177659fd9811f43771fa99381478628c"
34103410 integrity sha512-OpZ3zP+jT1PI7I8nemJX4AKmAX070ZkYPVWV/AaKTJl+tXCTGyVdC1a4SL8RUQYEwk/f34ZX8UTykN68FwrqAA==
34113411
3412- 3413- version "6.7.2 "
3414- resolved "https://registry.yarnpkg.com/stream-chat-react-native-core/-/stream-chat-react-native-core-6.7.2 .tgz#955e048b80c55175db084ccbb8519f52ef4bb00c "
3415- integrity sha512-WJFOCfQ7Xpn8Lr4AE6hUh4Qhrn1eGzsoAcKmL8eSoB/etxdNllOyZ3zrwvZgyy+KIEg9bcX4y+3OWtdKW6qfsA ==
3412+ 3413+ version "6.7.3 "
3414+ resolved "https://registry.yarnpkg.com/stream-chat-react-native-core/-/stream-chat-react-native-core-6.7.3 .tgz#7e213c03a7414c85ec4ba9da247d9703878ab520 "
3415+ integrity sha512-dYoYkVah7l4bmkI0vl7Ma6qD+xjsmeFWOdz7EVwbtR+B3HPMsgz8eRAmBj/p2xcSANxh1bPRD0iLlvD30vXyzg ==
34163416 dependencies :
34173417 " @gorhom/bottom-sheet" " ^5.1.1"
34183418 dayjs "1.10.5"
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ export function useChannelState<
5858 const cid = channel ?. id || 'id' ; // in case channel is not initialized, use generic id string for indexing
5959 const { setState, state } = useChannelsStateContext < StreamChatGenerics > ( ) ;
6060
61- const [ threadMessages , setThreadMessages ] = useStateManager (
61+ const [ threadMessages , setThreadMessagesInternal ] = useStateManager (
6262 {
6363 cid,
6464 key : 'threadMessages' ,
@@ -67,6 +67,10 @@ export function useChannelState<
6767 } ,
6868 ( threadId && channel ?. state ?. threads ?. [ threadId ] ) || [ ] ,
6969 ) ;
70+ const setThreadMessages = useCallback (
71+ ( value : ChannelState [ 'threadMessages' ] ) => setThreadMessagesInternal ( [ ...value ] ) ,
72+ [ setThreadMessagesInternal ] ,
73+ ) ;
7074
7175 return {
7276 setThreadMessages,
You can’t perform that action at this time.
0 commit comments