stream-chat-react-native-core 5.36.0-beta.5 → 5.36.0-beta.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (277) hide show
  1. package/lib/commonjs/components/Attachment/AudioAttachment.js.map +1 -1
  2. package/lib/commonjs/components/Attachment/Gallery.js.map +1 -1
  3. package/lib/commonjs/components/AttachmentPicker/AttachmentPicker.js.map +1 -1
  4. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteInput.js.map +1 -1
  5. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionList.js.map +1 -1
  6. package/lib/commonjs/components/Channel/Channel.js.map +1 -1
  7. package/lib/commonjs/components/Channel/hooks/useCreateChannelContext.js.map +1 -1
  8. package/lib/commonjs/components/Channel/hooks/useCreateInputMessageInputContext.js.map +1 -1
  9. package/lib/commonjs/components/Channel/hooks/useCreateMessagesContext.js.map +1 -1
  10. package/lib/commonjs/components/Channel/hooks/useCreateOwnCapabilitiesContext.js.map +1 -1
  11. package/lib/commonjs/components/Channel/hooks/useCreatePaginatedMessageListContext.js.map +1 -1
  12. package/lib/commonjs/components/Channel/hooks/useCreateThreadContext.js.map +1 -1
  13. package/lib/commonjs/components/Channel/hooks/useCreateTypingContext.js.map +1 -1
  14. package/lib/commonjs/components/ChannelList/ChannelList.js.map +1 -1
  15. package/lib/commonjs/components/ChannelList/Skeleton.js.map +1 -1
  16. package/lib/commonjs/components/ChannelList/hooks/listeners/useAddedToChannelNotification.js.map +1 -1
  17. package/lib/commonjs/components/ChannelList/hooks/listeners/useChannelDeleted.js.map +1 -1
  18. package/lib/commonjs/components/ChannelList/hooks/listeners/useChannelHidden.js.map +1 -1
  19. package/lib/commonjs/components/ChannelList/hooks/listeners/useChannelTruncated.js.map +1 -1
  20. package/lib/commonjs/components/ChannelList/hooks/listeners/useChannelUpdated.js.map +1 -1
  21. package/lib/commonjs/components/ChannelList/hooks/listeners/useChannelVisible.js.map +1 -1
  22. package/lib/commonjs/components/ChannelList/hooks/listeners/useNewMessage.js.map +1 -1
  23. package/lib/commonjs/components/ChannelList/hooks/listeners/useNewMessageNotification.js.map +1 -1
  24. package/lib/commonjs/components/ChannelList/hooks/listeners/useRemovedFromChannelNotification.js.map +1 -1
  25. package/lib/commonjs/components/ChannelList/hooks/listeners/useUserPresence.js.map +1 -1
  26. package/lib/commonjs/components/ChannelList/hooks/useCreateChannelsContext.js.map +1 -1
  27. package/lib/commonjs/components/ChannelList/hooks/usePaginatedChannels.js.map +1 -1
  28. package/lib/commonjs/components/ChannelPreview/ChannelPreview.js.map +1 -1
  29. package/lib/commonjs/components/ChannelPreview/ChannelPreviewMessenger.js.map +1 -1
  30. package/lib/commonjs/components/ChannelPreview/hooks/useChannelPreviewDisplayAvatar.js.map +1 -1
  31. package/lib/commonjs/components/ChannelPreview/hooks/useChannelPreviewDisplayName.js.map +1 -1
  32. package/lib/commonjs/components/ChannelPreview/hooks/useChannelPreviewDisplayPresence.js.map +1 -1
  33. package/lib/commonjs/components/ChannelPreview/hooks/useLatestMessagePreview.js.map +1 -1
  34. package/lib/commonjs/components/Chat/Chat.js +7 -1
  35. package/lib/commonjs/components/Chat/Chat.js.map +1 -1
  36. package/lib/commonjs/components/Chat/hooks/useAppSettings.js.map +1 -1
  37. package/lib/commonjs/components/Chat/hooks/useCreateChatContext.js.map +1 -1
  38. package/lib/commonjs/components/Chat/hooks/useIsOnline.js.map +1 -1
  39. package/lib/commonjs/components/Chat/hooks/useMutedUsers.js.map +1 -1
  40. package/lib/commonjs/components/Chat/hooks/useSyncDatabase.js.map +1 -1
  41. package/lib/commonjs/components/ImageGallery/ImageGallery.js.map +1 -1
  42. package/lib/commonjs/components/ImageGallery/components/ImageGalleryOverlay.js.map +1 -1
  43. package/lib/commonjs/components/Indicators/LoadingDot.js.map +1 -1
  44. package/lib/commonjs/components/KeyboardCompatibleView/KeyboardCompatibleViewFC.js.map +1 -1
  45. package/lib/commonjs/components/Message/hooks/useCreateMessageContext.js.map +1 -1
  46. package/lib/commonjs/components/Message/hooks/useProcessReactions.js.map +1 -1
  47. package/lib/commonjs/components/MessageInput/FileUploadPreview.js +16 -16
  48. package/lib/commonjs/components/MessageInput/FileUploadPreview.js.map +1 -1
  49. package/lib/commonjs/components/MessageInput/MessageInput.js.map +1 -1
  50. package/lib/commonjs/components/MessageList/MessageList.js.map +1 -1
  51. package/lib/commonjs/components/MessageList/StickyHeader.js.map +1 -1
  52. package/lib/commonjs/components/MessageList/hooks/useShouldScrollToRecentOnNewOwnMessage.js.map +1 -1
  53. package/lib/commonjs/components/MessageOverlay/MessageOverlay.js.map +1 -1
  54. package/lib/commonjs/components/MessageOverlay/hooks/useFetchReactions.js.map +1 -1
  55. package/lib/commonjs/components/ProgressControl/ProgressControl.js.map +1 -1
  56. package/lib/commonjs/components/ProgressControl/WaveProgressBar.js.map +1 -1
  57. package/lib/commonjs/components/Spinner/Spinner.js.map +1 -1
  58. package/lib/commonjs/components/Thread/Thread.js.map +1 -1
  59. package/lib/commonjs/contexts/channelsStateContext/ChannelsStateContext.js.map +1 -1
  60. package/lib/commonjs/contexts/channelsStateContext/useChannelState.js.map +1 -1
  61. package/lib/commonjs/contexts/messageInputContext/hooks/useCreateMessageInputContext.js.map +1 -1
  62. package/lib/commonjs/contexts/messageInputContext/hooks/useMessageDetailsForState.js.map +1 -1
  63. package/lib/commonjs/contexts/overlayContext/OverlayProvider.js.map +1 -1
  64. package/lib/commonjs/hooks/useScreenDimensions.js.map +1 -1
  65. package/lib/commonjs/hooks/useStreami18n.js.map +1 -1
  66. package/lib/commonjs/hooks/useViewport.js.map +1 -1
  67. package/lib/commonjs/mock-builders/mock.js +2 -1
  68. package/lib/commonjs/mock-builders/mock.js.map +1 -1
  69. package/lib/commonjs/utils/DBSyncManager.js +6 -2
  70. package/lib/commonjs/utils/DBSyncManager.js.map +1 -1
  71. package/lib/commonjs/version.json +1 -1
  72. package/lib/module/components/Attachment/AudioAttachment.js.map +1 -1
  73. package/lib/module/components/Attachment/Gallery.js.map +1 -1
  74. package/lib/module/components/AttachmentPicker/AttachmentPicker.js.map +1 -1
  75. package/lib/module/components/AutoCompleteInput/AutoCompleteInput.js.map +1 -1
  76. package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionList.js.map +1 -1
  77. package/lib/module/components/Channel/Channel.js.map +1 -1
  78. package/lib/module/components/Channel/hooks/useCreateChannelContext.js.map +1 -1
  79. package/lib/module/components/Channel/hooks/useCreateInputMessageInputContext.js.map +1 -1
  80. package/lib/module/components/Channel/hooks/useCreateMessagesContext.js.map +1 -1
  81. package/lib/module/components/Channel/hooks/useCreateOwnCapabilitiesContext.js.map +1 -1
  82. package/lib/module/components/Channel/hooks/useCreatePaginatedMessageListContext.js.map +1 -1
  83. package/lib/module/components/Channel/hooks/useCreateThreadContext.js.map +1 -1
  84. package/lib/module/components/Channel/hooks/useCreateTypingContext.js.map +1 -1
  85. package/lib/module/components/ChannelList/ChannelList.js.map +1 -1
  86. package/lib/module/components/ChannelList/Skeleton.js.map +1 -1
  87. package/lib/module/components/ChannelList/hooks/listeners/useAddedToChannelNotification.js.map +1 -1
  88. package/lib/module/components/ChannelList/hooks/listeners/useChannelDeleted.js.map +1 -1
  89. package/lib/module/components/ChannelList/hooks/listeners/useChannelHidden.js.map +1 -1
  90. package/lib/module/components/ChannelList/hooks/listeners/useChannelTruncated.js.map +1 -1
  91. package/lib/module/components/ChannelList/hooks/listeners/useChannelUpdated.js.map +1 -1
  92. package/lib/module/components/ChannelList/hooks/listeners/useChannelVisible.js.map +1 -1
  93. package/lib/module/components/ChannelList/hooks/listeners/useNewMessage.js.map +1 -1
  94. package/lib/module/components/ChannelList/hooks/listeners/useNewMessageNotification.js.map +1 -1
  95. package/lib/module/components/ChannelList/hooks/listeners/useRemovedFromChannelNotification.js.map +1 -1
  96. package/lib/module/components/ChannelList/hooks/listeners/useUserPresence.js.map +1 -1
  97. package/lib/module/components/ChannelList/hooks/useCreateChannelsContext.js.map +1 -1
  98. package/lib/module/components/ChannelList/hooks/usePaginatedChannels.js.map +1 -1
  99. package/lib/module/components/ChannelPreview/ChannelPreview.js.map +1 -1
  100. package/lib/module/components/ChannelPreview/ChannelPreviewMessenger.js.map +1 -1
  101. package/lib/module/components/ChannelPreview/hooks/useChannelPreviewDisplayAvatar.js.map +1 -1
  102. package/lib/module/components/ChannelPreview/hooks/useChannelPreviewDisplayName.js.map +1 -1
  103. package/lib/module/components/ChannelPreview/hooks/useChannelPreviewDisplayPresence.js.map +1 -1
  104. package/lib/module/components/ChannelPreview/hooks/useLatestMessagePreview.js.map +1 -1
  105. package/lib/module/components/Chat/Chat.js +7 -1
  106. package/lib/module/components/Chat/Chat.js.map +1 -1
  107. package/lib/module/components/Chat/hooks/useAppSettings.js.map +1 -1
  108. package/lib/module/components/Chat/hooks/useCreateChatContext.js.map +1 -1
  109. package/lib/module/components/Chat/hooks/useIsOnline.js.map +1 -1
  110. package/lib/module/components/Chat/hooks/useMutedUsers.js.map +1 -1
  111. package/lib/module/components/Chat/hooks/useSyncDatabase.js.map +1 -1
  112. package/lib/module/components/ImageGallery/ImageGallery.js.map +1 -1
  113. package/lib/module/components/ImageGallery/components/ImageGalleryOverlay.js.map +1 -1
  114. package/lib/module/components/Indicators/LoadingDot.js.map +1 -1
  115. package/lib/module/components/KeyboardCompatibleView/KeyboardCompatibleViewFC.js.map +1 -1
  116. package/lib/module/components/Message/hooks/useCreateMessageContext.js.map +1 -1
  117. package/lib/module/components/Message/hooks/useProcessReactions.js.map +1 -1
  118. package/lib/module/components/MessageInput/FileUploadPreview.js +16 -16
  119. package/lib/module/components/MessageInput/FileUploadPreview.js.map +1 -1
  120. package/lib/module/components/MessageInput/MessageInput.js.map +1 -1
  121. package/lib/module/components/MessageList/MessageList.js.map +1 -1
  122. package/lib/module/components/MessageList/StickyHeader.js.map +1 -1
  123. package/lib/module/components/MessageList/hooks/useShouldScrollToRecentOnNewOwnMessage.js.map +1 -1
  124. package/lib/module/components/MessageOverlay/MessageOverlay.js.map +1 -1
  125. package/lib/module/components/MessageOverlay/hooks/useFetchReactions.js.map +1 -1
  126. package/lib/module/components/ProgressControl/ProgressControl.js.map +1 -1
  127. package/lib/module/components/ProgressControl/WaveProgressBar.js.map +1 -1
  128. package/lib/module/components/Spinner/Spinner.js.map +1 -1
  129. package/lib/module/components/Thread/Thread.js.map +1 -1
  130. package/lib/module/contexts/channelsStateContext/ChannelsStateContext.js.map +1 -1
  131. package/lib/module/contexts/channelsStateContext/useChannelState.js.map +1 -1
  132. package/lib/module/contexts/messageInputContext/hooks/useCreateMessageInputContext.js.map +1 -1
  133. package/lib/module/contexts/messageInputContext/hooks/useMessageDetailsForState.js.map +1 -1
  134. package/lib/module/contexts/overlayContext/OverlayProvider.js.map +1 -1
  135. package/lib/module/hooks/useScreenDimensions.js.map +1 -1
  136. package/lib/module/hooks/useStreami18n.js.map +1 -1
  137. package/lib/module/hooks/useViewport.js.map +1 -1
  138. package/lib/module/mock-builders/mock.js +2 -1
  139. package/lib/module/mock-builders/mock.js.map +1 -1
  140. package/lib/module/utils/DBSyncManager.js +6 -2
  141. package/lib/module/utils/DBSyncManager.js.map +1 -1
  142. package/lib/module/version.json +1 -1
  143. package/lib/typescript/components/Attachment/AudioAttachment.d.ts.map +1 -1
  144. package/lib/typescript/components/Attachment/Gallery.d.ts.map +1 -1
  145. package/lib/typescript/components/AttachmentPicker/AttachmentPicker.d.ts.map +1 -1
  146. package/lib/typescript/components/AutoCompleteInput/AutoCompleteInput.d.ts.map +1 -1
  147. package/lib/typescript/components/AutoCompleteInput/AutoCompleteSuggestionList.d.ts.map +1 -1
  148. package/lib/typescript/components/Channel/Channel.d.ts.map +1 -1
  149. package/lib/typescript/components/Channel/hooks/useCreateChannelContext.d.ts.map +1 -1
  150. package/lib/typescript/components/Channel/hooks/useCreateInputMessageInputContext.d.ts.map +1 -1
  151. package/lib/typescript/components/Channel/hooks/useCreateMessagesContext.d.ts.map +1 -1
  152. package/lib/typescript/components/Channel/hooks/useCreateOwnCapabilitiesContext.d.ts.map +1 -1
  153. package/lib/typescript/components/Channel/hooks/useCreatePaginatedMessageListContext.d.ts.map +1 -1
  154. package/lib/typescript/components/Channel/hooks/useCreateThreadContext.d.ts.map +1 -1
  155. package/lib/typescript/components/Channel/hooks/useCreateTypingContext.d.ts.map +1 -1
  156. package/lib/typescript/components/ChannelList/ChannelList.d.ts.map +1 -1
  157. package/lib/typescript/components/ChannelList/Skeleton.d.ts.map +1 -1
  158. package/lib/typescript/components/ChannelList/hooks/listeners/useAddedToChannelNotification.d.ts.map +1 -1
  159. package/lib/typescript/components/ChannelList/hooks/listeners/useChannelDeleted.d.ts.map +1 -1
  160. package/lib/typescript/components/ChannelList/hooks/listeners/useChannelHidden.d.ts.map +1 -1
  161. package/lib/typescript/components/ChannelList/hooks/listeners/useChannelTruncated.d.ts.map +1 -1
  162. package/lib/typescript/components/ChannelList/hooks/listeners/useChannelUpdated.d.ts.map +1 -1
  163. package/lib/typescript/components/ChannelList/hooks/listeners/useChannelVisible.d.ts.map +1 -1
  164. package/lib/typescript/components/ChannelList/hooks/listeners/useNewMessage.d.ts.map +1 -1
  165. package/lib/typescript/components/ChannelList/hooks/listeners/useNewMessageNotification.d.ts.map +1 -1
  166. package/lib/typescript/components/ChannelList/hooks/listeners/useRemovedFromChannelNotification.d.ts.map +1 -1
  167. package/lib/typescript/components/ChannelList/hooks/listeners/useUserPresence.d.ts.map +1 -1
  168. package/lib/typescript/components/ChannelList/hooks/useCreateChannelsContext.d.ts.map +1 -1
  169. package/lib/typescript/components/ChannelList/hooks/usePaginatedChannels.d.ts.map +1 -1
  170. package/lib/typescript/components/ChannelPreview/ChannelPreview.d.ts.map +1 -1
  171. package/lib/typescript/components/ChannelPreview/ChannelPreviewMessenger.d.ts.map +1 -1
  172. package/lib/typescript/components/ChannelPreview/hooks/useChannelPreviewDisplayAvatar.d.ts.map +1 -1
  173. package/lib/typescript/components/ChannelPreview/hooks/useChannelPreviewDisplayName.d.ts.map +1 -1
  174. package/lib/typescript/components/ChannelPreview/hooks/useChannelPreviewDisplayPresence.d.ts.map +1 -1
  175. package/lib/typescript/components/ChannelPreview/hooks/useLatestMessagePreview.d.ts.map +1 -1
  176. package/lib/typescript/components/Chat/Chat.d.ts.map +1 -1
  177. package/lib/typescript/components/Chat/hooks/useAppSettings.d.ts.map +1 -1
  178. package/lib/typescript/components/Chat/hooks/useCreateChatContext.d.ts.map +1 -1
  179. package/lib/typescript/components/Chat/hooks/useIsOnline.d.ts.map +1 -1
  180. package/lib/typescript/components/Chat/hooks/useMutedUsers.d.ts.map +1 -1
  181. package/lib/typescript/components/Chat/hooks/useSyncDatabase.d.ts.map +1 -1
  182. package/lib/typescript/components/ImageGallery/ImageGallery.d.ts.map +1 -1
  183. package/lib/typescript/components/ImageGallery/components/ImageGalleryOverlay.d.ts.map +1 -1
  184. package/lib/typescript/components/Indicators/LoadingDot.d.ts.map +1 -1
  185. package/lib/typescript/components/KeyboardCompatibleView/KeyboardCompatibleViewFC.d.ts.map +1 -1
  186. package/lib/typescript/components/Message/hooks/useCreateMessageContext.d.ts.map +1 -1
  187. package/lib/typescript/components/Message/hooks/useProcessReactions.d.ts.map +1 -1
  188. package/lib/typescript/components/MessageInput/FileUploadPreview.d.ts.map +1 -1
  189. package/lib/typescript/components/MessageInput/MessageInput.d.ts.map +1 -1
  190. package/lib/typescript/components/MessageList/MessageList.d.ts.map +1 -1
  191. package/lib/typescript/components/MessageList/StickyHeader.d.ts.map +1 -1
  192. package/lib/typescript/components/MessageList/hooks/useShouldScrollToRecentOnNewOwnMessage.d.ts.map +1 -1
  193. package/lib/typescript/components/MessageOverlay/MessageOverlay.d.ts.map +1 -1
  194. package/lib/typescript/components/MessageOverlay/hooks/useFetchReactions.d.ts.map +1 -1
  195. package/lib/typescript/components/ProgressControl/ProgressControl.d.ts.map +1 -1
  196. package/lib/typescript/components/ProgressControl/WaveProgressBar.d.ts.map +1 -1
  197. package/lib/typescript/components/Spinner/Spinner.d.ts.map +1 -1
  198. package/lib/typescript/components/Thread/Thread.d.ts.map +1 -1
  199. package/lib/typescript/contexts/channelsStateContext/ChannelsStateContext.d.ts.map +1 -1
  200. package/lib/typescript/contexts/channelsStateContext/useChannelState.d.ts.map +1 -1
  201. package/lib/typescript/contexts/messageInputContext/hooks/useCreateMessageInputContext.d.ts.map +1 -1
  202. package/lib/typescript/contexts/messageInputContext/hooks/useMessageDetailsForState.d.ts.map +1 -1
  203. package/lib/typescript/contexts/overlayContext/OverlayProvider.d.ts.map +1 -1
  204. package/lib/typescript/hooks/useScreenDimensions.d.ts.map +1 -1
  205. package/lib/typescript/hooks/useStreami18n.d.ts.map +1 -1
  206. package/lib/typescript/hooks/useViewport.d.ts.map +1 -1
  207. package/lib/typescript/utils/DBSyncManager.d.ts +3 -0
  208. package/lib/typescript/utils/DBSyncManager.d.ts.map +1 -1
  209. package/package.json +1 -1
  210. package/src/components/Attachment/AudioAttachment.tsx +1 -0
  211. package/src/components/Attachment/Gallery.tsx +1 -0
  212. package/src/components/AttachmentPicker/AttachmentPicker.tsx +4 -0
  213. package/src/components/AutoCompleteInput/AutoCompleteInput.tsx +1 -0
  214. package/src/components/AutoCompleteInput/AutoCompleteSuggestionList.tsx +1 -0
  215. package/src/components/Channel/Channel.tsx +12 -0
  216. package/src/components/Channel/hooks/useCreateChannelContext.ts +1 -0
  217. package/src/components/Channel/hooks/useCreateInputMessageInputContext.ts +1 -0
  218. package/src/components/Channel/hooks/useCreateMessagesContext.ts +1 -0
  219. package/src/components/Channel/hooks/useCreateOwnCapabilitiesContext.ts +2 -0
  220. package/src/components/Channel/hooks/useCreatePaginatedMessageListContext.ts +1 -0
  221. package/src/components/Channel/hooks/useCreateThreadContext.ts +1 -0
  222. package/src/components/Channel/hooks/useCreateTypingContext.ts +1 -0
  223. package/src/components/ChannelList/ChannelList.tsx +1 -0
  224. package/src/components/ChannelList/Skeleton.tsx +1 -0
  225. package/src/components/ChannelList/hooks/listeners/useAddedToChannelNotification.ts +1 -0
  226. package/src/components/ChannelList/hooks/listeners/useChannelDeleted.ts +1 -0
  227. package/src/components/ChannelList/hooks/listeners/useChannelHidden.ts +1 -0
  228. package/src/components/ChannelList/hooks/listeners/useChannelTruncated.ts +1 -0
  229. package/src/components/ChannelList/hooks/listeners/useChannelUpdated.ts +1 -0
  230. package/src/components/ChannelList/hooks/listeners/useChannelVisible.ts +1 -0
  231. package/src/components/ChannelList/hooks/listeners/useNewMessage.ts +1 -0
  232. package/src/components/ChannelList/hooks/listeners/useNewMessageNotification.ts +1 -0
  233. package/src/components/ChannelList/hooks/listeners/useRemovedFromChannelNotification.ts +1 -0
  234. package/src/components/ChannelList/hooks/listeners/useUserPresence.ts +1 -0
  235. package/src/components/ChannelList/hooks/useCreateChannelsContext.ts +1 -0
  236. package/src/components/ChannelList/hooks/usePaginatedChannels.ts +1 -0
  237. package/src/components/ChannelPreview/ChannelPreview.tsx +4 -0
  238. package/src/components/ChannelPreview/ChannelPreviewMessenger.tsx +1 -0
  239. package/src/components/ChannelPreview/hooks/useChannelPreviewDisplayAvatar.ts +1 -0
  240. package/src/components/ChannelPreview/hooks/useChannelPreviewDisplayName.ts +1 -0
  241. package/src/components/ChannelPreview/hooks/useChannelPreviewDisplayPresence.ts +1 -0
  242. package/src/components/ChannelPreview/hooks/useLatestMessagePreview.ts +2 -0
  243. package/src/components/Chat/Chat.tsx +10 -1
  244. package/src/components/Chat/__tests__/Chat.test.js +80 -2
  245. package/src/components/Chat/hooks/useAppSettings.ts +1 -0
  246. package/src/components/Chat/hooks/useCreateChatContext.ts +1 -0
  247. package/src/components/Chat/hooks/useIsOnline.ts +1 -0
  248. package/src/components/Chat/hooks/useMutedUsers.ts +1 -0
  249. package/src/components/Chat/hooks/useSyncDatabase.ts +1 -0
  250. package/src/components/ImageGallery/ImageGallery.tsx +5 -0
  251. package/src/components/ImageGallery/components/ImageGalleryOverlay.tsx +1 -0
  252. package/src/components/Indicators/LoadingDot.tsx +1 -0
  253. package/src/components/KeyboardCompatibleView/KeyboardCompatibleViewFC.tsx +2 -0
  254. package/src/components/Message/hooks/useCreateMessageContext.ts +1 -0
  255. package/src/components/Message/hooks/useProcessReactions.ts +1 -0
  256. package/src/components/MessageInput/FileUploadPreview.tsx +10 -9
  257. package/src/components/MessageInput/MessageInput.tsx +13 -0
  258. package/src/components/MessageList/MessageList.tsx +6 -0
  259. package/src/components/MessageList/StickyHeader.tsx +1 -0
  260. package/src/components/MessageList/hooks/useShouldScrollToRecentOnNewOwnMessage.ts +1 -0
  261. package/src/components/MessageOverlay/MessageOverlay.tsx +2 -0
  262. package/src/components/MessageOverlay/hooks/useFetchReactions.ts +3 -0
  263. package/src/components/ProgressControl/ProgressControl.tsx +1 -0
  264. package/src/components/ProgressControl/WaveProgressBar.tsx +2 -0
  265. package/src/components/Spinner/Spinner.tsx +1 -0
  266. package/src/components/Thread/Thread.tsx +2 -0
  267. package/src/contexts/channelsStateContext/ChannelsStateContext.tsx +1 -0
  268. package/src/contexts/channelsStateContext/useChannelState.ts +3 -0
  269. package/src/contexts/messageInputContext/hooks/useCreateMessageInputContext.ts +1 -0
  270. package/src/contexts/messageInputContext/hooks/useMessageDetailsForState.ts +3 -0
  271. package/src/contexts/overlayContext/OverlayProvider.tsx +1 -0
  272. package/src/hooks/useScreenDimensions.ts +2 -0
  273. package/src/hooks/useStreami18n.ts +1 -0
  274. package/src/hooks/useViewport.ts +2 -0
  275. package/src/mock-builders/mock.js +1 -1
  276. package/src/utils/DBSyncManager.ts +11 -1
  277. package/src/version.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"useFetchReactions.d.ts","sourceRoot":"","sources":["../../../../../src/components/MessageOverlay/hooks/useFetchReactions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAI7D,OAAO,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AAEjE,MAAM,MAAM,sBAAsB,CAChC,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9E;IACF,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,IAAI,CAAC,EAAE,YAAY,CAAC,kBAAkB,CAAC,CAAC;CACzC,CAAC;AAEF,eAAO,MAAM,iBAAiB,gIAO3B,sBAAsB;;;;CA4DxB,CAAC"}
1
+ {"version":3,"file":"useFetchReactions.d.ts","sourceRoot":"","sources":["../../../../../src/components/MessageOverlay/hooks/useFetchReactions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAI7D,OAAO,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AAEjE,MAAM,MAAM,sBAAsB,CAChC,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9E;IACF,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,IAAI,CAAC,EAAE,YAAY,CAAC,kBAAkB,CAAC,CAAC;CACzC,CAAC;AAEF,eAAO,MAAM,iBAAiB,gIAO3B,sBAAsB;;;;CA+DxB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ProgressControl.d.ts","sourceRoot":"","sources":["../../../../src/components/ProgressControl/ProgressControl.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAazC,MAAM,MAAM,oBAAoB,GAAG;IACjC,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IACzC,cAAc,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;CAC7C,CAAC;AAoBF,eAAO,MAAM,eAAe,oCAClB,oBAAoB,uBA4F7B,CAAC"}
1
+ {"version":3,"file":"ProgressControl.d.ts","sourceRoot":"","sources":["../../../../src/components/ProgressControl/ProgressControl.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAazC,MAAM,MAAM,oBAAoB,GAAG;IACjC,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IACzC,cAAc,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;CAC7C,CAAC;AAoBF,eAAO,MAAM,eAAe,oCAClB,oBAAoB,uBA6F7B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"WaveProgressBar.d.ts","sourceRoot":"","sources":["../../../../src/components/ProgressControl/WaveProgressBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAc5D,MAAM,MAAM,oBAAoB,GAAG;IACjC,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IACzC,cAAc,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;CAC7C,CAAC;AA2BF,eAAO,MAAM,eAAe,oCAClB,oBAAoB,uBAqG7B,CAAC"}
1
+ {"version":3,"file":"WaveProgressBar.d.ts","sourceRoot":"","sources":["../../../../src/components/ProgressControl/WaveProgressBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAc5D,MAAM,MAAM,oBAAoB,GAAG;IACjC,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IACzC,cAAc,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;CAC7C,CAAC;AA2BF,eAAO,MAAM,eAAe,oCAClB,oBAAoB,uBAuG7B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Spinner.d.ts","sourceRoot":"","sources":["../../../../src/components/Spinner/Spinner.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AACzC,OAAO,EAAE,SAAS,EAAc,SAAS,EAAE,MAAM,cAAc,CAAC;AAqBhE,MAAM,MAAM,YAAY,GAAG;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,OAAO;YAAW,YAAY;;CAkC1C,CAAC"}
1
+ {"version":3,"file":"Spinner.d.ts","sourceRoot":"","sources":["../../../../src/components/Spinner/Spinner.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AACzC,OAAO,EAAE,SAAS,EAAc,SAAS,EAAE,MAAM,cAAc,CAAC;AAqBhE,MAAM,MAAM,YAAY,GAAG;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAA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AAE,CAAC,KAAK,EAAE,YAAY,CAAC,kBAAkB,CAAC,CAAC,MAAM,CAAC,KAAK,IAAI,CAAC;IACnE,iBAAiB,EAAE,CAAC,KAAK,EAAE,YAAY,CAAC,kBAAkB,CAAC,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IACvF,SAAS,EAAE,CAAC,KAAK,EAAE,YAAY,CAAC,kBAAkB,CAAC,CAAC,QAAQ,CAAC,KAAK,IAAI,CAAC;IACvE,eAAe,EAAE,CAAC,KAAK,EAAE,YAAY,CAAC,kBAAkB,CAAC,CAAC,cAAc,CAAC,KAAK,IAAI,CAAC;IACnF,WAAW,EAAE,CAAC,KAAK,EAAE,YAAY,CAAC,kBAAkB,CAAC,CAAC,UAAU,CAAC,KAAK,IAAI,CAAC;IAC3E,cAAc,EAAE,YAAY,CAAC,kBAAkB,CAAC,CAAC,gBAAgB,CAAC,CAAC;IACnE,MAAM,EAAE,YAAY,CAAC,kBAAkB,CAAC,CAAC,QAAQ,CAAC,CAAC;IACnD,YAAY,EAAE,YAAY,CAAC,kBAAkB,CAAC,CAAC,cAAc,CAAC,CAAC;IAC/D,QAAQ,EAAE,YAAY,CAAC,kBAAkB,CAAC,CAAC,UAAU,CAAC,CAAC;CACxD,CAAC;AAEF,wBAAgB,eAAe,CAC7B,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,EAEhF,OAAO,EAAE,WAAW,CAAC,kBAAkB,CAAC,GAAG,SAAS,EACpD,QAAQ,CAAC,EAAE,MAAM,GAChB,oBAAoB,CAAC,kBAAkB,CAAC,CAiG1C"}
@@ -1 +1 @@
1
- {"version":3,"file":"useCreateMessageInputContext.d.ts","sourceRoot":"","sources":["../../../../../src/contexts/messageInputContext/hooks/useCreateMessageInputContext.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AACtE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAC5E,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAEvE,eAAO,MAAM,4BAA4B,ivEAwPxC,CAAC"}
1
+ {"version":3,"file":"useCreateMessageInputContext.d.ts","sourceRoot":"","sources":["../../../../../src/contexts/messageInputContext/hooks/useCreateMessageInputContext.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AACtE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAC5E,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAEvE,eAAO,MAAM,4BAA4B,ivEAyPxC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useMessageDetailsForState.d.ts","sourceRoot":"","sources":["../../../../../src/contexts/messageInputContext/hooks/useMessageDetailsForState.ts"],"names":[],"mappings":";AAIA,OAAO,EACL,yBAAyB,EAEzB,UAAU,EACV,WAAW,EACZ,MAAM,sBAAsB,CAAC;AAG9B,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAEvE,eAAO,MAAM,yBAAyB,6KAIrB,MAAM;;;;;;;;;;;;;CAoJtB,CAAC"}
1
+ {"version":3,"file":"useMessageDetailsForState.d.ts","sourceRoot":"","sources":["../../../../../src/contexts/messageInputContext/hooks/useMessageDetailsForState.ts"],"names":[],"mappings":";AAIA,OAAO,EACL,yBAAyB,EAEzB,UAAU,EACV,WAAW,EACZ,MAAM,sBAAsB,CAAC;AAG9B,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAEvE,eAAO,MAAM,yBAAyB,6KAIrB,MAAM;;;;;;;;;;;;;CAuJtB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"OverlayProvider.d.ts","sourceRoot":"","sources":["../../../../src/contexts/overlayContext/OverlayProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAA+B,MAAM,OAAO,CAAC;AAa9E,OAAO,EAAkB,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAoBxE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAUnE;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,eAAe,mLA2M3B,CAAC"}
1
+ {"version":3,"file":"OverlayProvider.d.ts","sourceRoot":"","sources":["../../../../src/contexts/overlayContext/OverlayProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAA+B,MAAM,OAAO,CAAC;AAa9E,OAAO,EAAkB,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAoBxE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAUnE;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,eAAe,mLA4M3B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useScreenDimensions.d.ts","sourceRoot":"","sources":["../../../src/hooks/useScreenDimensions.ts"],"names":[],"mappings":"AAGA;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB,aAAc,OAAO;2BAsBrB,MAAM;0BALP,MAAM;CAapC,CAAC"}
1
+ {"version":3,"file":"useScreenDimensions.d.ts","sourceRoot":"","sources":["../../../src/hooks/useScreenDimensions.ts"],"names":[],"mappings":"AAGA;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB,aAAc,OAAO;2BAwBrB,MAAM;0BANP,MAAM;CAcpC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useStreami18n.d.ts","sourceRoot":"","sources":["../../../src/hooks/useStreami18n.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mDAAmD,CAAC;AAC7F,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAEtD,eAAO,MAAM,aAAa,kBAAmB,UAAU,wBAyCtD,CAAC"}
1
+ {"version":3,"file":"useStreami18n.d.ts","sourceRoot":"","sources":["../../../src/hooks/useStreami18n.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mDAAmD,CAAC;AAC7F,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAEtD,eAAO,MAAM,aAAa,kBAAmB,UAAU,wBA0CtD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useViewport.d.ts","sourceRoot":"","sources":["../../../src/hooks/useViewport.ts"],"names":[],"mappings":"AAGA;;;;;;GAMG;AACH,eAAO,MAAM,WAAW,aAAc,OAAO;2BAsBb,MAAM;0BALP,MAAM;CAapC,CAAC"}
1
+ {"version":3,"file":"useViewport.d.ts","sourceRoot":"","sources":["../../../src/hooks/useViewport.ts"],"names":[],"mappings":"AAGA;;;;;;GAMG;AACH,eAAO,MAAM,WAAW,aAAc,OAAO;2BAwBb,MAAM;0BANP,MAAM;CAcpC,CAAC"}
@@ -5,6 +5,9 @@ export declare class DBSyncManager {
5
5
  static syncStatus: boolean;
6
6
  static listeners: Array<(status: boolean) => void>;
7
7
  static client: StreamChat | null;
8
+ static connectionChangedListener: {
9
+ unsubscribe: () => void;
10
+ } | null;
8
11
  /**
9
12
  * Returns weather channel states in local DB are synced with backend or not.
10
13
  * @returns boolean
@@ -1 +1 @@
1
- {"version":3,"file":"DBSyncManager.d.ts","sourceRoot":"","sources":["../../../src/utils/DBSyncManager.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAoB,UAAU,EAAE,MAAM,aAAa,CAAC;AAUhE,OAAO,KAAK,EAAE,WAAW,EAAmB,MAAM,gBAAgB,CAAC;AACnE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,gBAAgB,CAAC;AAuBhE,qBAAa,aAAa;IACxB,MAAM,CAAC,UAAU,UAAS;IAC1B,MAAM,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC,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AAkB,sBAAuB,OAAO,KAAK,IAAI;;MAQ9D;IAEF,MAAM,CAAC,IAAI,8IA6CT;IAEF,MAAM,CAAC,0BAA0B,sBAK/B;IAEF,MAAM,CAAC,SAAS;;cAOR,WAAW;;;oBAmBjB;IAEF,MAAM,CAAC,WAAW;;cAOV,WAAW;;;OAiBjB;IAEF,MAAM,CAAC,mBAAmB,8IA4BxB;IAEF,MAAM,CAAC,gBAAgB,eAAgB;QAAE,SAAS,EAAE,MAAM,CAAA;KAAE,UAU1D;CACH"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "stream-chat-react-native-core",
3
3
  "description": "The official React Native and Expo components for Stream Chat, a service for building chat applications",
4
- "version": "5.36.0-beta.5",
4
+ "version": "5.36.0-beta.7",
5
5
  "author": {
6
6
  "company": "Stream.io Inc",
7
7
  "name": "Stream.io Inc"
@@ -155,6 +155,7 @@ export const AudioAttachment = (props: AudioAttachmentProps) => {
155
155
  soundRef.current.unloadAsync();
156
156
  }
157
157
  };
158
+ // eslint-disable-next-line react-hooks/exhaustive-deps
158
159
  }, []);
159
160
 
160
161
  // This is needed for expo applications where the rerender doesn't occur on time thefore you need to update the state of the sound.
@@ -141,6 +141,7 @@ const GalleryWithContext = <
141
141
  images: imagesAndVideos,
142
142
  sizeConfig,
143
143
  }),
144
+ // eslint-disable-next-line react-hooks/exhaustive-deps
144
145
  [imagesAndVideosValue],
145
146
  );
146
147
 
@@ -137,6 +137,7 @@ export const AttachmentPicker = React.forwardRef(
137
137
  }
138
138
  setLoadingPhotos(false);
139
139
  }
140
+ // eslint-disable-next-line react-hooks/exhaustive-deps
140
141
  }, [currentIndex, selectedPicker, loadingPhotos]);
141
142
 
142
143
  // we need to use ref here to avoid running effect when getMorePhotos changes
@@ -172,6 +173,7 @@ export const AttachmentPicker = React.forwardRef(
172
173
  const backHandler = BackHandler.addEventListener('hardwareBackPress', backAction);
173
174
 
174
175
  return () => backHandler.remove();
176
+ // eslint-disable-next-line react-hooks/exhaustive-deps
175
177
  }, [selectedPicker, closePicker]);
176
178
 
177
179
  useEffect(() => {
@@ -196,6 +198,7 @@ export const AttachmentPicker = React.forwardRef(
196
198
  Keyboard.removeListener(keyboardShowEvent, onKeyboardOpenHandler);
197
199
  }
198
200
  };
201
+ // eslint-disable-next-line react-hooks/exhaustive-deps
199
202
  }, [closePicker, selectedPicker]);
200
203
 
201
204
  useEffect(() => {
@@ -208,6 +211,7 @@ export const AttachmentPicker = React.forwardRef(
208
211
  setPhotoError(false);
209
212
  }
210
213
  }
214
+ // eslint-disable-next-line react-hooks/exhaustive-deps
211
215
  }, [currentIndex, loadingPhotos]);
212
216
 
213
217
  useEffect(() => {
@@ -129,6 +129,7 @@ const AutoCompleteInputWithContext = <
129
129
 
130
130
  useEffect(() => {
131
131
  handleChange(text, true);
132
+ // eslint-disable-next-line react-hooks/exhaustive-deps
132
133
  }, [text]);
133
134
 
134
135
  const startTracking = (trigger: Trigger) => {
@@ -95,6 +95,7 @@ export const AutoCompleteSuggestionListWithContext = <
95
95
  return triggerType === 'emoji' || triggerType === 'command'
96
96
  ? totalItemHeight + AUTO_COMPLETE_SUGGESTION_LIST_HEADER_HEIGHT
97
97
  : totalItemHeight;
98
+ // eslint-disable-next-line react-hooks/exhaustive-deps
98
99
  }, [itemHeight, data.length]);
99
100
 
100
101
  const renderItem = ({ item }: { item: Suggestion<StreamChatGenerics> }) => {
@@ -677,6 +677,7 @@ const ChannelWithContext = <
677
677
  loadMoreFinished.cancel();
678
678
  loadMoreThreadFinished.cancel();
679
679
  };
680
+ // eslint-disable-next-line react-hooks/exhaustive-deps
680
681
  }, [channelId, messageId]);
681
682
 
682
683
  const threadPropsExists = !!threadProps;
@@ -690,6 +691,7 @@ const ChannelWithContext = <
690
691
  } else {
691
692
  setThread(null);
692
693
  }
694
+ // eslint-disable-next-line react-hooks/exhaustive-deps
693
695
  }, [threadPropsExists, shouldSyncChannel]);
694
696
 
695
697
  const handleAppBackground = useCallback(() => {
@@ -702,6 +704,7 @@ const ChannelWithContext = <
702
704
  type: 'typing.stop',
703
705
  } as StreamEvent<StreamChatGenerics>);
704
706
  }
707
+ // eslint-disable-next-line react-hooks/exhaustive-deps
705
708
  }, [thread?.id, channelId]);
706
709
 
707
710
  useAppStateListener(undefined, handleAppBackground);
@@ -806,6 +809,7 @@ const ChannelWithContext = <
806
809
  return () => {
807
810
  channelSubscriptions.forEach((s) => s.unsubscribe());
808
811
  };
812
+ // eslint-disable-next-line react-hooks/exhaustive-deps
809
813
  }, [channelId, shouldSyncChannel]);
810
814
 
811
815
  // subscribe to the generic all channel event
@@ -843,6 +847,7 @@ const ChannelWithContext = <
843
847
  };
844
848
  const { unsubscribe } = channel.on(handleEvent);
845
849
  return unsubscribe;
850
+ // eslint-disable-next-line react-hooks/exhaustive-deps
846
851
  }, [channelId, thread?.id, shouldSyncChannel]);
847
852
 
848
853
  // subscribe to channel.deleted event
@@ -854,6 +859,7 @@ const ChannelWithContext = <
854
859
  });
855
860
 
856
861
  return unsubscribe;
862
+ // eslint-disable-next-line react-hooks/exhaustive-deps
857
863
  }, [channelId]);
858
864
 
859
865
  useEffect(() => {
@@ -863,6 +869,7 @@ const ChannelWithContext = <
863
869
 
864
870
  const { unsubscribe } = client.on('notification.mark_read', handleEvent);
865
871
  return unsubscribe;
872
+ // eslint-disable-next-line react-hooks/exhaustive-deps
866
873
  }, []);
867
874
 
868
875
  const channelQueryCallRef = useRef(
@@ -1058,6 +1065,7 @@ const ChannelWithContext = <
1058
1065
  // now restart it since its done
1059
1066
  restartSetsMergeFuncRef.current();
1060
1067
  }
1068
+ // eslint-disable-next-line react-hooks/exhaustive-deps
1061
1069
  }, [targetedMessage]);
1062
1070
 
1063
1071
  /**
@@ -1361,6 +1369,7 @@ const ChannelWithContext = <
1361
1369
  return () => {
1362
1370
  connectionChangedSubscription.unsubscribe();
1363
1371
  };
1372
+ // eslint-disable-next-line react-hooks/exhaustive-deps
1364
1373
  }, [enableOfflineSupport, shouldSyncChannel]);
1365
1374
 
1366
1375
  const reloadChannel = () =>
@@ -1825,6 +1834,7 @@ const ChannelWithContext = <
1825
1834
  * Where the deps are [channelId, hasMore, loadingMoreRecent, loadingMore]
1826
1835
  * and only those deps should be used here because of that
1827
1836
  */
1837
+ // eslint-disable-next-line react-hooks/exhaustive-deps
1828
1838
  [channelId, hasMore, loadingMore],
1829
1839
  );
1830
1840
 
@@ -1896,6 +1906,7 @@ const ChannelWithContext = <
1896
1906
  * Where the deps are [channelId, hasMore, loadingMoreRecent, loadingMore, hasNoMoreRecentMessagesToLoad]
1897
1907
  * and and only those deps should be used here because of that
1898
1908
  */
1909
+ // eslint-disable-next-line react-hooks/exhaustive-deps
1899
1910
  [channelId, hasNoMoreRecentMessagesToLoad],
1900
1911
  );
1901
1912
 
@@ -2086,6 +2097,7 @@ const ChannelWithContext = <
2086
2097
  setThread(message);
2087
2098
  setThreadMessages(newThreadMessages);
2088
2099
  },
2100
+ // eslint-disable-next-line react-hooks/exhaustive-deps
2089
2101
  [setThread, setThreadMessages],
2090
2102
  );
2091
2103
 
@@ -84,6 +84,7 @@ export const useCreateChannelContext = <
84
84
  watcherCount,
85
85
  watchers,
86
86
  }),
87
+ // eslint-disable-next-line react-hooks/exhaustive-deps
87
88
  [
88
89
  channelId,
89
90
  disabled,
@@ -133,6 +133,7 @@ export const useCreateInputMessageInputContext = <
133
133
  StartAudioRecordingButton,
134
134
  UploadProgressIndicator,
135
135
  }),
136
+ // eslint-disable-next-line react-hooks/exhaustive-deps
136
137
  [compressImageQuality, channelId, editingDep, initialValue, maxMessageLength, quotedMessageId],
137
138
  );
138
139
 
@@ -189,6 +189,7 @@ export const useCreateMessagesContext = <
189
189
  UrlPreview,
190
190
  VideoThumbnail,
191
191
  }),
192
+ // eslint-disable-next-line react-hooks/exhaustive-deps
192
193
  [
193
194
  additionalTouchablePropsLength,
194
195
  channelId,
@@ -41,6 +41,7 @@ export const useCreateOwnCapabilitiesContext = <
41
41
  return () => {
42
42
  listener.unsubscribe();
43
43
  };
44
+ // eslint-disable-next-line react-hooks/exhaustive-deps
44
45
  }, []);
45
46
 
46
47
  const ownCapabilitiesContext: OwnCapabilitiesContextValue = useMemo(() => {
@@ -56,6 +57,7 @@ export const useCreateOwnCapabilitiesContext = <
56
57
  );
57
58
 
58
59
  return ownCapabilitiesContext;
60
+ // eslint-disable-next-line react-hooks/exhaustive-deps
59
61
  }, [channel.id, overrideCapabilitiesStr, own_capabilities]);
60
62
 
61
63
  return ownCapabilitiesContext;
@@ -34,6 +34,7 @@ export const useCreatePaginatedMessageListContext = <
34
34
  setLoadingMore,
35
35
  setLoadingMoreRecent,
36
36
  }),
37
+ // eslint-disable-next-line react-hooks/exhaustive-deps
37
38
  [
38
39
  channelId,
39
40
  hasMore,
@@ -36,6 +36,7 @@ export const useCreateThreadContext = <
36
36
  threadLoadingMore,
37
37
  threadMessages,
38
38
  }),
39
+ // eslint-disable-next-line react-hooks/exhaustive-deps
39
40
  [
40
41
  allowThreadMessagesInChannel,
41
42
  threadHasMore,
@@ -14,6 +14,7 @@ export const useCreateTypingContext = <
14
14
  () => ({
15
15
  typing,
16
16
  }),
17
+ // eslint-disable-next-line react-hooks/exhaustive-deps
17
18
  [typingValue],
18
19
  );
19
20
 
@@ -368,6 +368,7 @@ export const ChannelList = <
368
368
  filters,
369
369
  sort,
370
370
  });
371
+ // eslint-disable-next-line react-hooks/exhaustive-deps
371
372
  }, [channelIdsStr, staticChannelsActive]);
372
373
 
373
374
  const channelsContext = useCreateChannelsContext({
@@ -55,6 +55,7 @@ export const Skeleton = () => {
55
55
  }),
56
56
  -1,
57
57
  );
58
+ // eslint-disable-next-line react-hooks/exhaustive-deps
58
59
  }, []);
59
60
 
60
61
  const animatedStyle = useAnimatedStyle(
@@ -44,5 +44,6 @@ export const useAddedToChannelNotification = <
44
44
 
45
45
  const listener = client?.on('notification.added_to_channel', handleEvent);
46
46
  return () => listener?.unsubscribe();
47
+ // eslint-disable-next-line react-hooks/exhaustive-deps
47
48
  }, []);
48
49
  };
@@ -43,5 +43,6 @@ export const useChannelDeleted = <
43
43
 
44
44
  const listener = client?.on('channel.deleted', handleEvent);
45
45
  return () => listener?.unsubscribe();
46
+ // eslint-disable-next-line react-hooks/exhaustive-deps
46
47
  }, []);
47
48
  };
@@ -44,5 +44,6 @@ export const useChannelHidden = <
44
44
 
45
45
  const listener = client?.on('channel.hidden', handleEvent);
46
46
  return () => listener?.unsubscribe();
47
+ // eslint-disable-next-line react-hooks/exhaustive-deps
47
48
  }, []);
48
49
  };
@@ -38,5 +38,6 @@ export const useChannelTruncated = <
38
38
 
39
39
  const listener = client?.on('channel.truncated', handleEvent);
40
40
  return () => listener?.unsubscribe();
41
+ // eslint-disable-next-line react-hooks/exhaustive-deps
41
42
  }, []);
42
43
  };
@@ -50,5 +50,6 @@ export const useChannelUpdated = <
50
50
 
51
51
  const listener = client?.on('channel.updated', handleEvent);
52
52
  return () => listener?.unsubscribe();
53
+ // eslint-disable-next-line react-hooks/exhaustive-deps
53
54
  }, []);
54
55
  };
@@ -44,5 +44,6 @@ export const useChannelVisible = <
44
44
 
45
45
  const listener = client?.on('channel.visible', handleEvent);
46
46
  return () => listener?.unsubscribe();
47
+ // eslint-disable-next-line react-hooks/exhaustive-deps
47
48
  }, []);
48
49
  };
@@ -57,5 +57,6 @@ export const useNewMessage = <
57
57
 
58
58
  const listener = client?.on('message.new', handleEvent);
59
59
  return () => listener?.unsubscribe();
60
+ // eslint-disable-next-line react-hooks/exhaustive-deps
60
61
  }, []);
61
62
  };
@@ -54,5 +54,6 @@ export const useNewMessageNotification = <
54
54
 
55
55
  const listener = client?.on('notification.message_new', handleEvent);
56
56
  return () => listener?.unsubscribe();
57
+ // eslint-disable-next-line react-hooks/exhaustive-deps
57
58
  }, []);
58
59
  };
@@ -39,5 +39,6 @@ export const useRemovedFromChannelNotification = <
39
39
 
40
40
  const listener = client?.on('notification.removed_from_channel', handleEvent);
41
41
  return () => listener?.unsubscribe();
42
+ // eslint-disable-next-line react-hooks/exhaustive-deps
42
43
  }, []);
43
44
  };
@@ -43,5 +43,6 @@ export const useUserPresence = <
43
43
  return () => {
44
44
  listeners?.forEach((l) => l?.unsubscribe());
45
45
  };
46
+ // eslint-disable-next-line react-hooks/exhaustive-deps
46
47
  }, []);
47
48
  };
@@ -80,6 +80,7 @@ export const useCreateChannelsContext = <
80
80
  setFlatListRef,
81
81
  Skeleton,
82
82
  }),
83
+ // eslint-disable-next-line react-hooks/exhaustive-deps
83
84
  [
84
85
  channelValueString,
85
86
  error,
@@ -249,6 +249,7 @@ export const usePaginatedChannels = <
249
249
  }
250
250
 
251
251
  return () => listener?.unsubscribe?.();
252
+ // eslint-disable-next-line react-hooks/exhaustive-deps
252
253
  }, [filterStr, sortStr]);
253
254
 
254
255
  return {
@@ -52,6 +52,7 @@ const ChannelPreviewWithContext = <
52
52
  setUnread(channel.countUnread());
53
53
  });
54
54
  return unsubscribe;
55
+ // eslint-disable-next-line react-hooks/exhaustive-deps
55
56
  }, []);
56
57
 
57
58
  useEffect(() => {
@@ -65,6 +66,7 @@ const ChannelPreviewWithContext = <
65
66
 
66
67
  const newUnreadCount = channel.countUnread();
67
68
  setUnread(newUnreadCount);
69
+ // eslint-disable-next-line react-hooks/exhaustive-deps
68
70
  }, [channelLastMessageString, channelListForceUpdate]);
69
71
 
70
72
  useEffect(() => {
@@ -92,6 +94,7 @@ const ChannelPreviewWithContext = <
92
94
  ];
93
95
 
94
96
  return () => listeners.forEach((l) => l.unsubscribe());
97
+ // eslint-disable-next-line react-hooks/exhaustive-deps
95
98
  }, []);
96
99
 
97
100
  useEffect(() => {
@@ -105,6 +108,7 @@ const ChannelPreviewWithContext = <
105
108
 
106
109
  const listener = channel.on('message.read', handleReadEvent);
107
110
  return () => listener.unsubscribe();
111
+ // eslint-disable-next-line react-hooks/exhaustive-deps
108
112
  }, []);
109
113
 
110
114
  return <Preview channel={channel} latestMessagePreview={latestMessagePreview} unread={unread} />;
@@ -143,6 +143,7 @@ const ChannelPreviewMessengerWithContext = <
143
143
 
144
144
  client.on('notification.channel_mutes_updated', handleEvent);
145
145
  return () => client.off('notification.channel_mutes_updated', handleEvent);
146
+ // eslint-disable-next-line react-hooks/exhaustive-deps
146
147
  }, [client]);
147
148
 
148
149
  return (
@@ -72,6 +72,7 @@ export const useChannelPreviewDisplayAvatar = <
72
72
 
73
73
  useEffect(() => {
74
74
  setDisplayAvatar(getChannelPreviewDisplayAvatar(channel, client));
75
+ // eslint-disable-next-line react-hooks/exhaustive-deps
75
76
  }, [id, image, name]);
76
77
 
77
78
  return displayAvatar;
@@ -106,6 +106,7 @@ export const useChannelPreviewDisplayName = <
106
106
  members,
107
107
  }),
108
108
  );
109
+ // eslint-disable-next-line react-hooks/exhaustive-deps
109
110
  }, [channelName, currentUserId, characterLimit, numOfMembers]);
110
111
 
111
112
  return displayName;
@@ -48,6 +48,7 @@ export const useChannelPreviewDisplayPresence = <
48
48
 
49
49
  useEffect(() => {
50
50
  setDisplayPresence(getChannelPreviewDisplayPresence(channel, client));
51
+ // eslint-disable-next-line react-hooks/exhaustive-deps
51
52
  }, [channelMemberOnline]);
52
53
 
53
54
  return displayPresence;
@@ -258,6 +258,7 @@ export const useLatestMessagePreview = <
258
258
  setReadEvents(read_events);
259
259
  }
260
260
  }
261
+ // eslint-disable-next-line react-hooks/exhaustive-deps
261
262
  }, [channelConfigExists]);
262
263
 
263
264
  useEffect(
@@ -271,6 +272,7 @@ export const useLatestMessagePreview = <
271
272
  t,
272
273
  }),
273
274
  ),
275
+ // eslint-disable-next-line react-hooks/exhaustive-deps
274
276
  [channelLastMessageString, forceUpdate, readEvents, readStatus],
275
277
  );
276
278
 
@@ -197,19 +197,28 @@ const ChatWithContext = <
197
197
  data: client.user,
198
198
  });
199
199
  }
200
+ // eslint-disable-next-line react-hooks/exhaustive-deps
200
201
  }, [client, enableOfflineSupport]);
201
202
 
202
203
  const setActiveChannel = (newChannel?: Channel<StreamChatGenerics>) => setChannel(newChannel);
203
204
 
204
205
  useEffect(() => {
205
206
  if (userID && enableOfflineSupport) {
207
+ // This acts as a lock for some very rare occurrences of concurrency
208
+ // issues we've encountered before with the QuickSqliteClient being
209
+ // uninitialized before it's being invoked.
206
210
  setInitialisedDatabaseConfig({ initialised: false, userID });
207
211
  QuickSqliteClient.initializeDatabase();
208
- DBSyncManager.init(client as unknown as StreamChat);
209
212
  setInitialisedDatabaseConfig({ initialised: true, userID });
213
+ DBSyncManager.init(client as unknown as StreamChat);
210
214
  }
215
+ // eslint-disable-next-line react-hooks/exhaustive-deps
211
216
  }, [userID, enableOfflineSupport]);
212
217
 
218
+ // In case something went wrong, make sure to also unsubscribe the listener
219
+ // on unmount if it exists to prevent a memory leak.
220
+ useEffect(() => () => DBSyncManager.connectionChangedListener?.unsubscribe(), []);
221
+
213
222
  const initialisedDatabase =
214
223
  initialisedDatabaseConfig.initialised && userID === initialisedDatabaseConfig.userID;
215
224