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.
- package/lib/commonjs/components/Attachment/AudioAttachment.js.map +1 -1
- package/lib/commonjs/components/Attachment/Gallery.js.map +1 -1
- package/lib/commonjs/components/AttachmentPicker/AttachmentPicker.js.map +1 -1
- package/lib/commonjs/components/AutoCompleteInput/AutoCompleteInput.js.map +1 -1
- package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionList.js.map +1 -1
- package/lib/commonjs/components/Channel/Channel.js.map +1 -1
- package/lib/commonjs/components/Channel/hooks/useCreateChannelContext.js.map +1 -1
- package/lib/commonjs/components/Channel/hooks/useCreateInputMessageInputContext.js.map +1 -1
- package/lib/commonjs/components/Channel/hooks/useCreateMessagesContext.js.map +1 -1
- package/lib/commonjs/components/Channel/hooks/useCreateOwnCapabilitiesContext.js.map +1 -1
- package/lib/commonjs/components/Channel/hooks/useCreatePaginatedMessageListContext.js.map +1 -1
- package/lib/commonjs/components/Channel/hooks/useCreateThreadContext.js.map +1 -1
- package/lib/commonjs/components/Channel/hooks/useCreateTypingContext.js.map +1 -1
- package/lib/commonjs/components/ChannelList/ChannelList.js.map +1 -1
- package/lib/commonjs/components/ChannelList/Skeleton.js.map +1 -1
- package/lib/commonjs/components/ChannelList/hooks/listeners/useAddedToChannelNotification.js.map +1 -1
- package/lib/commonjs/components/ChannelList/hooks/listeners/useChannelDeleted.js.map +1 -1
- package/lib/commonjs/components/ChannelList/hooks/listeners/useChannelHidden.js.map +1 -1
- package/lib/commonjs/components/ChannelList/hooks/listeners/useChannelTruncated.js.map +1 -1
- package/lib/commonjs/components/ChannelList/hooks/listeners/useChannelUpdated.js.map +1 -1
- package/lib/commonjs/components/ChannelList/hooks/listeners/useChannelVisible.js.map +1 -1
- package/lib/commonjs/components/ChannelList/hooks/listeners/useNewMessage.js.map +1 -1
- package/lib/commonjs/components/ChannelList/hooks/listeners/useNewMessageNotification.js.map +1 -1
- package/lib/commonjs/components/ChannelList/hooks/listeners/useRemovedFromChannelNotification.js.map +1 -1
- package/lib/commonjs/components/ChannelList/hooks/listeners/useUserPresence.js.map +1 -1
- package/lib/commonjs/components/ChannelList/hooks/useCreateChannelsContext.js.map +1 -1
- package/lib/commonjs/components/ChannelList/hooks/usePaginatedChannels.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelPreview.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/ChannelPreviewMessenger.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/hooks/useChannelPreviewDisplayAvatar.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/hooks/useChannelPreviewDisplayName.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/hooks/useChannelPreviewDisplayPresence.js.map +1 -1
- package/lib/commonjs/components/ChannelPreview/hooks/useLatestMessagePreview.js.map +1 -1
- package/lib/commonjs/components/Chat/Chat.js +7 -1
- package/lib/commonjs/components/Chat/Chat.js.map +1 -1
- package/lib/commonjs/components/Chat/hooks/useAppSettings.js.map +1 -1
- package/lib/commonjs/components/Chat/hooks/useCreateChatContext.js.map +1 -1
- package/lib/commonjs/components/Chat/hooks/useIsOnline.js.map +1 -1
- package/lib/commonjs/components/Chat/hooks/useMutedUsers.js.map +1 -1
- package/lib/commonjs/components/Chat/hooks/useSyncDatabase.js.map +1 -1
- package/lib/commonjs/components/ImageGallery/ImageGallery.js.map +1 -1
- package/lib/commonjs/components/ImageGallery/components/ImageGalleryOverlay.js.map +1 -1
- package/lib/commonjs/components/Indicators/LoadingDot.js.map +1 -1
- package/lib/commonjs/components/KeyboardCompatibleView/KeyboardCompatibleViewFC.js.map +1 -1
- package/lib/commonjs/components/Message/hooks/useCreateMessageContext.js.map +1 -1
- package/lib/commonjs/components/Message/hooks/useProcessReactions.js.map +1 -1
- package/lib/commonjs/components/MessageInput/FileUploadPreview.js +16 -16
- package/lib/commonjs/components/MessageInput/FileUploadPreview.js.map +1 -1
- package/lib/commonjs/components/MessageInput/MessageInput.js.map +1 -1
- package/lib/commonjs/components/MessageList/MessageList.js.map +1 -1
- package/lib/commonjs/components/MessageList/StickyHeader.js.map +1 -1
- package/lib/commonjs/components/MessageList/hooks/useShouldScrollToRecentOnNewOwnMessage.js.map +1 -1
- package/lib/commonjs/components/MessageOverlay/MessageOverlay.js.map +1 -1
- package/lib/commonjs/components/MessageOverlay/hooks/useFetchReactions.js.map +1 -1
- package/lib/commonjs/components/ProgressControl/ProgressControl.js.map +1 -1
- package/lib/commonjs/components/ProgressControl/WaveProgressBar.js.map +1 -1
- package/lib/commonjs/components/Spinner/Spinner.js.map +1 -1
- package/lib/commonjs/components/Thread/Thread.js.map +1 -1
- package/lib/commonjs/contexts/channelsStateContext/ChannelsStateContext.js.map +1 -1
- package/lib/commonjs/contexts/channelsStateContext/useChannelState.js.map +1 -1
- package/lib/commonjs/contexts/messageInputContext/hooks/useCreateMessageInputContext.js.map +1 -1
- package/lib/commonjs/contexts/messageInputContext/hooks/useMessageDetailsForState.js.map +1 -1
- package/lib/commonjs/contexts/overlayContext/OverlayProvider.js.map +1 -1
- package/lib/commonjs/hooks/useScreenDimensions.js.map +1 -1
- package/lib/commonjs/hooks/useStreami18n.js.map +1 -1
- package/lib/commonjs/hooks/useViewport.js.map +1 -1
- package/lib/commonjs/mock-builders/mock.js +2 -1
- package/lib/commonjs/mock-builders/mock.js.map +1 -1
- package/lib/commonjs/utils/DBSyncManager.js +6 -2
- package/lib/commonjs/utils/DBSyncManager.js.map +1 -1
- package/lib/commonjs/version.json +1 -1
- package/lib/module/components/Attachment/AudioAttachment.js.map +1 -1
- package/lib/module/components/Attachment/Gallery.js.map +1 -1
- package/lib/module/components/AttachmentPicker/AttachmentPicker.js.map +1 -1
- package/lib/module/components/AutoCompleteInput/AutoCompleteInput.js.map +1 -1
- package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionList.js.map +1 -1
- package/lib/module/components/Channel/Channel.js.map +1 -1
- package/lib/module/components/Channel/hooks/useCreateChannelContext.js.map +1 -1
- package/lib/module/components/Channel/hooks/useCreateInputMessageInputContext.js.map +1 -1
- package/lib/module/components/Channel/hooks/useCreateMessagesContext.js.map +1 -1
- package/lib/module/components/Channel/hooks/useCreateOwnCapabilitiesContext.js.map +1 -1
- package/lib/module/components/Channel/hooks/useCreatePaginatedMessageListContext.js.map +1 -1
- package/lib/module/components/Channel/hooks/useCreateThreadContext.js.map +1 -1
- package/lib/module/components/Channel/hooks/useCreateTypingContext.js.map +1 -1
- package/lib/module/components/ChannelList/ChannelList.js.map +1 -1
- package/lib/module/components/ChannelList/Skeleton.js.map +1 -1
- package/lib/module/components/ChannelList/hooks/listeners/useAddedToChannelNotification.js.map +1 -1
- package/lib/module/components/ChannelList/hooks/listeners/useChannelDeleted.js.map +1 -1
- package/lib/module/components/ChannelList/hooks/listeners/useChannelHidden.js.map +1 -1
- package/lib/module/components/ChannelList/hooks/listeners/useChannelTruncated.js.map +1 -1
- package/lib/module/components/ChannelList/hooks/listeners/useChannelUpdated.js.map +1 -1
- package/lib/module/components/ChannelList/hooks/listeners/useChannelVisible.js.map +1 -1
- package/lib/module/components/ChannelList/hooks/listeners/useNewMessage.js.map +1 -1
- package/lib/module/components/ChannelList/hooks/listeners/useNewMessageNotification.js.map +1 -1
- package/lib/module/components/ChannelList/hooks/listeners/useRemovedFromChannelNotification.js.map +1 -1
- package/lib/module/components/ChannelList/hooks/listeners/useUserPresence.js.map +1 -1
- package/lib/module/components/ChannelList/hooks/useCreateChannelsContext.js.map +1 -1
- package/lib/module/components/ChannelList/hooks/usePaginatedChannels.js.map +1 -1
- package/lib/module/components/ChannelPreview/ChannelPreview.js.map +1 -1
- package/lib/module/components/ChannelPreview/ChannelPreviewMessenger.js.map +1 -1
- package/lib/module/components/ChannelPreview/hooks/useChannelPreviewDisplayAvatar.js.map +1 -1
- package/lib/module/components/ChannelPreview/hooks/useChannelPreviewDisplayName.js.map +1 -1
- package/lib/module/components/ChannelPreview/hooks/useChannelPreviewDisplayPresence.js.map +1 -1
- package/lib/module/components/ChannelPreview/hooks/useLatestMessagePreview.js.map +1 -1
- package/lib/module/components/Chat/Chat.js +7 -1
- package/lib/module/components/Chat/Chat.js.map +1 -1
- package/lib/module/components/Chat/hooks/useAppSettings.js.map +1 -1
- package/lib/module/components/Chat/hooks/useCreateChatContext.js.map +1 -1
- package/lib/module/components/Chat/hooks/useIsOnline.js.map +1 -1
- package/lib/module/components/Chat/hooks/useMutedUsers.js.map +1 -1
- package/lib/module/components/Chat/hooks/useSyncDatabase.js.map +1 -1
- package/lib/module/components/ImageGallery/ImageGallery.js.map +1 -1
- package/lib/module/components/ImageGallery/components/ImageGalleryOverlay.js.map +1 -1
- package/lib/module/components/Indicators/LoadingDot.js.map +1 -1
- package/lib/module/components/KeyboardCompatibleView/KeyboardCompatibleViewFC.js.map +1 -1
- package/lib/module/components/Message/hooks/useCreateMessageContext.js.map +1 -1
- package/lib/module/components/Message/hooks/useProcessReactions.js.map +1 -1
- package/lib/module/components/MessageInput/FileUploadPreview.js +16 -16
- package/lib/module/components/MessageInput/FileUploadPreview.js.map +1 -1
- package/lib/module/components/MessageInput/MessageInput.js.map +1 -1
- package/lib/module/components/MessageList/MessageList.js.map +1 -1
- package/lib/module/components/MessageList/StickyHeader.js.map +1 -1
- package/lib/module/components/MessageList/hooks/useShouldScrollToRecentOnNewOwnMessage.js.map +1 -1
- package/lib/module/components/MessageOverlay/MessageOverlay.js.map +1 -1
- package/lib/module/components/MessageOverlay/hooks/useFetchReactions.js.map +1 -1
- package/lib/module/components/ProgressControl/ProgressControl.js.map +1 -1
- package/lib/module/components/ProgressControl/WaveProgressBar.js.map +1 -1
- package/lib/module/components/Spinner/Spinner.js.map +1 -1
- package/lib/module/components/Thread/Thread.js.map +1 -1
- package/lib/module/contexts/channelsStateContext/ChannelsStateContext.js.map +1 -1
- package/lib/module/contexts/channelsStateContext/useChannelState.js.map +1 -1
- package/lib/module/contexts/messageInputContext/hooks/useCreateMessageInputContext.js.map +1 -1
- package/lib/module/contexts/messageInputContext/hooks/useMessageDetailsForState.js.map +1 -1
- package/lib/module/contexts/overlayContext/OverlayProvider.js.map +1 -1
- package/lib/module/hooks/useScreenDimensions.js.map +1 -1
- package/lib/module/hooks/useStreami18n.js.map +1 -1
- package/lib/module/hooks/useViewport.js.map +1 -1
- package/lib/module/mock-builders/mock.js +2 -1
- package/lib/module/mock-builders/mock.js.map +1 -1
- package/lib/module/utils/DBSyncManager.js +6 -2
- package/lib/module/utils/DBSyncManager.js.map +1 -1
- package/lib/module/version.json +1 -1
- package/lib/typescript/components/Attachment/AudioAttachment.d.ts.map +1 -1
- package/lib/typescript/components/Attachment/Gallery.d.ts.map +1 -1
- package/lib/typescript/components/AttachmentPicker/AttachmentPicker.d.ts.map +1 -1
- package/lib/typescript/components/AutoCompleteInput/AutoCompleteInput.d.ts.map +1 -1
- package/lib/typescript/components/AutoCompleteInput/AutoCompleteSuggestionList.d.ts.map +1 -1
- package/lib/typescript/components/Channel/Channel.d.ts.map +1 -1
- package/lib/typescript/components/Channel/hooks/useCreateChannelContext.d.ts.map +1 -1
- package/lib/typescript/components/Channel/hooks/useCreateInputMessageInputContext.d.ts.map +1 -1
- package/lib/typescript/components/Channel/hooks/useCreateMessagesContext.d.ts.map +1 -1
- package/lib/typescript/components/Channel/hooks/useCreateOwnCapabilitiesContext.d.ts.map +1 -1
- package/lib/typescript/components/Channel/hooks/useCreatePaginatedMessageListContext.d.ts.map +1 -1
- package/lib/typescript/components/Channel/hooks/useCreateThreadContext.d.ts.map +1 -1
- package/lib/typescript/components/Channel/hooks/useCreateTypingContext.d.ts.map +1 -1
- package/lib/typescript/components/ChannelList/ChannelList.d.ts.map +1 -1
- package/lib/typescript/components/ChannelList/Skeleton.d.ts.map +1 -1
- package/lib/typescript/components/ChannelList/hooks/listeners/useAddedToChannelNotification.d.ts.map +1 -1
- package/lib/typescript/components/ChannelList/hooks/listeners/useChannelDeleted.d.ts.map +1 -1
- package/lib/typescript/components/ChannelList/hooks/listeners/useChannelHidden.d.ts.map +1 -1
- package/lib/typescript/components/ChannelList/hooks/listeners/useChannelTruncated.d.ts.map +1 -1
- package/lib/typescript/components/ChannelList/hooks/listeners/useChannelUpdated.d.ts.map +1 -1
- package/lib/typescript/components/ChannelList/hooks/listeners/useChannelVisible.d.ts.map +1 -1
- package/lib/typescript/components/ChannelList/hooks/listeners/useNewMessage.d.ts.map +1 -1
- package/lib/typescript/components/ChannelList/hooks/listeners/useNewMessageNotification.d.ts.map +1 -1
- package/lib/typescript/components/ChannelList/hooks/listeners/useRemovedFromChannelNotification.d.ts.map +1 -1
- package/lib/typescript/components/ChannelList/hooks/listeners/useUserPresence.d.ts.map +1 -1
- package/lib/typescript/components/ChannelList/hooks/useCreateChannelsContext.d.ts.map +1 -1
- package/lib/typescript/components/ChannelList/hooks/usePaginatedChannels.d.ts.map +1 -1
- package/lib/typescript/components/ChannelPreview/ChannelPreview.d.ts.map +1 -1
- package/lib/typescript/components/ChannelPreview/ChannelPreviewMessenger.d.ts.map +1 -1
- package/lib/typescript/components/ChannelPreview/hooks/useChannelPreviewDisplayAvatar.d.ts.map +1 -1
- package/lib/typescript/components/ChannelPreview/hooks/useChannelPreviewDisplayName.d.ts.map +1 -1
- package/lib/typescript/components/ChannelPreview/hooks/useChannelPreviewDisplayPresence.d.ts.map +1 -1
- package/lib/typescript/components/ChannelPreview/hooks/useLatestMessagePreview.d.ts.map +1 -1
- package/lib/typescript/components/Chat/Chat.d.ts.map +1 -1
- package/lib/typescript/components/Chat/hooks/useAppSettings.d.ts.map +1 -1
- package/lib/typescript/components/Chat/hooks/useCreateChatContext.d.ts.map +1 -1
- package/lib/typescript/components/Chat/hooks/useIsOnline.d.ts.map +1 -1
- package/lib/typescript/components/Chat/hooks/useMutedUsers.d.ts.map +1 -1
- package/lib/typescript/components/Chat/hooks/useSyncDatabase.d.ts.map +1 -1
- package/lib/typescript/components/ImageGallery/ImageGallery.d.ts.map +1 -1
- package/lib/typescript/components/ImageGallery/components/ImageGalleryOverlay.d.ts.map +1 -1
- package/lib/typescript/components/Indicators/LoadingDot.d.ts.map +1 -1
- package/lib/typescript/components/KeyboardCompatibleView/KeyboardCompatibleViewFC.d.ts.map +1 -1
- package/lib/typescript/components/Message/hooks/useCreateMessageContext.d.ts.map +1 -1
- package/lib/typescript/components/Message/hooks/useProcessReactions.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/FileUploadPreview.d.ts.map +1 -1
- package/lib/typescript/components/MessageInput/MessageInput.d.ts.map +1 -1
- package/lib/typescript/components/MessageList/MessageList.d.ts.map +1 -1
- package/lib/typescript/components/MessageList/StickyHeader.d.ts.map +1 -1
- package/lib/typescript/components/MessageList/hooks/useShouldScrollToRecentOnNewOwnMessage.d.ts.map +1 -1
- package/lib/typescript/components/MessageOverlay/MessageOverlay.d.ts.map +1 -1
- package/lib/typescript/components/MessageOverlay/hooks/useFetchReactions.d.ts.map +1 -1
- package/lib/typescript/components/ProgressControl/ProgressControl.d.ts.map +1 -1
- package/lib/typescript/components/ProgressControl/WaveProgressBar.d.ts.map +1 -1
- package/lib/typescript/components/Spinner/Spinner.d.ts.map +1 -1
- package/lib/typescript/components/Thread/Thread.d.ts.map +1 -1
- package/lib/typescript/contexts/channelsStateContext/ChannelsStateContext.d.ts.map +1 -1
- package/lib/typescript/contexts/channelsStateContext/useChannelState.d.ts.map +1 -1
- package/lib/typescript/contexts/messageInputContext/hooks/useCreateMessageInputContext.d.ts.map +1 -1
- package/lib/typescript/contexts/messageInputContext/hooks/useMessageDetailsForState.d.ts.map +1 -1
- package/lib/typescript/contexts/overlayContext/OverlayProvider.d.ts.map +1 -1
- package/lib/typescript/hooks/useScreenDimensions.d.ts.map +1 -1
- package/lib/typescript/hooks/useStreami18n.d.ts.map +1 -1
- package/lib/typescript/hooks/useViewport.d.ts.map +1 -1
- package/lib/typescript/utils/DBSyncManager.d.ts +3 -0
- package/lib/typescript/utils/DBSyncManager.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/Attachment/AudioAttachment.tsx +1 -0
- package/src/components/Attachment/Gallery.tsx +1 -0
- package/src/components/AttachmentPicker/AttachmentPicker.tsx +4 -0
- package/src/components/AutoCompleteInput/AutoCompleteInput.tsx +1 -0
- package/src/components/AutoCompleteInput/AutoCompleteSuggestionList.tsx +1 -0
- package/src/components/Channel/Channel.tsx +12 -0
- package/src/components/Channel/hooks/useCreateChannelContext.ts +1 -0
- package/src/components/Channel/hooks/useCreateInputMessageInputContext.ts +1 -0
- package/src/components/Channel/hooks/useCreateMessagesContext.ts +1 -0
- package/src/components/Channel/hooks/useCreateOwnCapabilitiesContext.ts +2 -0
- package/src/components/Channel/hooks/useCreatePaginatedMessageListContext.ts +1 -0
- package/src/components/Channel/hooks/useCreateThreadContext.ts +1 -0
- package/src/components/Channel/hooks/useCreateTypingContext.ts +1 -0
- package/src/components/ChannelList/ChannelList.tsx +1 -0
- package/src/components/ChannelList/Skeleton.tsx +1 -0
- package/src/components/ChannelList/hooks/listeners/useAddedToChannelNotification.ts +1 -0
- package/src/components/ChannelList/hooks/listeners/useChannelDeleted.ts +1 -0
- package/src/components/ChannelList/hooks/listeners/useChannelHidden.ts +1 -0
- package/src/components/ChannelList/hooks/listeners/useChannelTruncated.ts +1 -0
- package/src/components/ChannelList/hooks/listeners/useChannelUpdated.ts +1 -0
- package/src/components/ChannelList/hooks/listeners/useChannelVisible.ts +1 -0
- package/src/components/ChannelList/hooks/listeners/useNewMessage.ts +1 -0
- package/src/components/ChannelList/hooks/listeners/useNewMessageNotification.ts +1 -0
- package/src/components/ChannelList/hooks/listeners/useRemovedFromChannelNotification.ts +1 -0
- package/src/components/ChannelList/hooks/listeners/useUserPresence.ts +1 -0
- package/src/components/ChannelList/hooks/useCreateChannelsContext.ts +1 -0
- package/src/components/ChannelList/hooks/usePaginatedChannels.ts +1 -0
- package/src/components/ChannelPreview/ChannelPreview.tsx +4 -0
- package/src/components/ChannelPreview/ChannelPreviewMessenger.tsx +1 -0
- package/src/components/ChannelPreview/hooks/useChannelPreviewDisplayAvatar.ts +1 -0
- package/src/components/ChannelPreview/hooks/useChannelPreviewDisplayName.ts +1 -0
- package/src/components/ChannelPreview/hooks/useChannelPreviewDisplayPresence.ts +1 -0
- package/src/components/ChannelPreview/hooks/useLatestMessagePreview.ts +2 -0
- package/src/components/Chat/Chat.tsx +10 -1
- package/src/components/Chat/__tests__/Chat.test.js +80 -2
- package/src/components/Chat/hooks/useAppSettings.ts +1 -0
- package/src/components/Chat/hooks/useCreateChatContext.ts +1 -0
- package/src/components/Chat/hooks/useIsOnline.ts +1 -0
- package/src/components/Chat/hooks/useMutedUsers.ts +1 -0
- package/src/components/Chat/hooks/useSyncDatabase.ts +1 -0
- package/src/components/ImageGallery/ImageGallery.tsx +5 -0
- package/src/components/ImageGallery/components/ImageGalleryOverlay.tsx +1 -0
- package/src/components/Indicators/LoadingDot.tsx +1 -0
- package/src/components/KeyboardCompatibleView/KeyboardCompatibleViewFC.tsx +2 -0
- package/src/components/Message/hooks/useCreateMessageContext.ts +1 -0
- package/src/components/Message/hooks/useProcessReactions.ts +1 -0
- package/src/components/MessageInput/FileUploadPreview.tsx +10 -9
- package/src/components/MessageInput/MessageInput.tsx +13 -0
- package/src/components/MessageList/MessageList.tsx +6 -0
- package/src/components/MessageList/StickyHeader.tsx +1 -0
- package/src/components/MessageList/hooks/useShouldScrollToRecentOnNewOwnMessage.ts +1 -0
- package/src/components/MessageOverlay/MessageOverlay.tsx +2 -0
- package/src/components/MessageOverlay/hooks/useFetchReactions.ts +3 -0
- package/src/components/ProgressControl/ProgressControl.tsx +1 -0
- package/src/components/ProgressControl/WaveProgressBar.tsx +2 -0
- package/src/components/Spinner/Spinner.tsx +1 -0
- package/src/components/Thread/Thread.tsx +2 -0
- package/src/contexts/channelsStateContext/ChannelsStateContext.tsx +1 -0
- package/src/contexts/channelsStateContext/useChannelState.ts +3 -0
- package/src/contexts/messageInputContext/hooks/useCreateMessageInputContext.ts +1 -0
- package/src/contexts/messageInputContext/hooks/useMessageDetailsForState.ts +3 -0
- package/src/contexts/overlayContext/OverlayProvider.tsx +1 -0
- package/src/hooks/useScreenDimensions.ts +2 -0
- package/src/hooks/useStreami18n.ts +1 -0
- package/src/hooks/useViewport.ts +2 -0
- package/src/mock-builders/mock.js +1 -1
- package/src/utils/DBSyncManager.ts +11 -1
- 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;;;;
|
|
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,
|
|
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,
|
|
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;;
|
|
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;;CAmC1C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Thread.d.ts","sourceRoot":"","sources":["../../../../src/components/Thread/Thread.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAKzC,OAAO,EAAE,gBAAgB,EAAkB,MAAM,wCAAwC,CAAC;AAC1F,OAAO,EACL,oBAAoB,EAErB,MAAM,gDAAgD,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAoB,MAAM,4CAA4C,CAAC;AAElG,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAEL,iBAAiB,EAClB,MAAM,8BAA8B,CAAC;AACtC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAEnE,KAAK,sBAAsB,CACzB,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9E,IAAI,CAAC,gBAAgB,CAAC,kBAAkB,CAAC,EAAE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;IAC7D,KAAK,EAAE,aAAa,CAAC,kBAAkB,CAAC,CAAC;CAC1C,CAAC;AA4DF,eAAO,MAAM,qBAAqB;cAKtB,SAAS;uBAsCpB,CAAC;AAEF,eAAO,MAAM,uBAAuB,uIAcnC,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,wBAAwB,mOAiBpC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useChannelState.d.ts","sourceRoot":"","sources":["../../../../src/contexts/channelsStateContext/useChannelState.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,aAAa,CAAC;AAI1D,OAAO,KAAK,EAA6B,YAAY,EAAQ,MAAM,wBAAwB,CAAC;AAE5F,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"useChannelState.d.ts","sourceRoot":"","sources":["../../../../src/contexts/channelsStateContext/useChannelState.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,aAAa,CAAC;AAI1D,OAAO,KAAK,EAA6B,YAAY,EAAQ,MAAM,wBAAwB,CAAC;AAE5F,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AA+CnE,MAAM,MAAM,oBAAoB,CAC9B,kBAAkB,SAAS,yBAAyB,GAAG,yBAAyB,IAC9E;IACF,OAAO,EAAE,YAAY,CAAC,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC;IACrD,QAAQ,EAAE,YAAY,CAAC,kBAAkB,CAAC,CAAC,UAAU,CAAC,CAAC;IACvD,IAAI,EAAE,YAAY,CAAC,kBAAkB,CAAC,CAAC,MAAM,CAAC,CAAC;IAC/C,UAAU,EAAE,CAAC,KAAK,EAAE,YAAY,CAAC,kBAAkB,CAAC,CAAC,SAAS,CAAC,KAAK,IAAI,CAAC;IACzE,WAAW,EAAE,CAAC,KAAK,EAAE,YAAY,CAAC,kBAAkB,CAAC,CAAC,UAAU,CAAC,KAAK,IAAI,CAAC;IAC3E,OAAO,EAAE,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"}
|
package/lib/typescript/contexts/messageInputContext/hooks/useCreateMessageInputContext.d.ts.map
CHANGED
|
@@ -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,
|
|
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"}
|
package/lib/typescript/contexts/messageInputContext/hooks/useMessageDetailsForState.d.ts.map
CHANGED
|
@@ -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;;;;;;;;;;;;;
|
|
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,
|
|
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;
|
|
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,
|
|
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;
|
|
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,EA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V,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.
|
|
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.
|
|
@@ -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(() => {
|
|
@@ -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
|
|
|
@@ -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
|
|
|
@@ -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;
|
|
@@ -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 (
|
|
@@ -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
|
|