Commit 6358846
feat: offline support (#1670)
* feat: wip jump to a message after using the new around messages api
* refactor: scroll to first unread channel
* refactor: loading more recent messages should not rely on isUpToDate flag anymore
* fix: set noMoreMessages flag to false when we are jumping to a message
* fix: scroll to bottom button should not rely on isUpToDate flag
* fix: show scroll to bottom button using the new hasNoMoreRecentMessages prop
* fix: replace more isUpToDate calls with hasNoMoreRecentMessagesToLoad
* feat: add documentation for hasNoMoreRecentMessagesToLoad
* feat: update stream-chat-js to 6.3.0
* chore: remove unused import of Text
* fix: readd the removed console log of error
* feat: add documentation for loadChannelAroundMessage
* chore: remove unneeded comment
* chore: move scrollToDebounceTimeoutRef to the top of messageList
* fix: remove unused variables
* fix: update jest snapshot for the new prop addition for messageList
* fix: remove unused useEffect in messageList
* fix: fix the failing message list test
* fix: channel unread indicator was showing up even when marked read
* fix: scroll to bottom indicator must not be always shown on open
* Revert "fix: fix the failing message list test"
This reverts commit d605744.
* fix: sometimes the channel was not loaded to the latest message
* feat: add maxToRenderPerBatch prop to the messageList
this reduces the scrollToIndex failure rate
* fix: when scrolling to a non rendered item, highlight was not shown
* fix: update snapshot to fix unit test
* fix: scroll to messageId didnt work if scrollToFirstUnreadMsg is set
* fix: ensure setTargetedMessage happens after messages array is copied
* fix: simplified channel logic of messageId scroll
* fix: remove unnecessary console log
* docs: create a new version of docs for v5 (#1596)
* docs: upgrade helper guide (#1605)
* docs: cut a new version of docs for v5
* docs: upgrade helper guide
* docs: drop v5 changes from v4 docs
* docs: add reason for cameraroll fork replacement
* docs: make removing cameraroll to be non-optional
Co-authored-by: Santhosh Vaiyapuri <[email protected]>
* feat: offline support (#1527)
* feat: offline support
* refactor: drop un-used function pragmaUserVersion
* refactor: reverting changes to ChannelPreview
* fix: fixing migration code issue
* refactor: drop limits from queries
* refactor: handling of message.read events and reads entity
* refactor: added members to separate table
* refactor: relative explicit query with left join to enrich users
* refactor: cleanup and reorganizing
* refactor: added index and foreign key constraints
* refactor: changes to be compatible with js client
* test: mocking sqlite
* refactor: added missing fields on channels table
* refactor: changes to be in sync with event from js client
* refactor: renaming table and cleanup of columns
* refactor: moving all quick-sqlite logic to separate class
* test: added simple test for offline support
* refactor: handle member related events
* refactor: added usage of sync api
* refactor: cleaning up un-necessary packages
* refactor: fixed issue with update message foreign key constraint failure
* refactor: cleanup
* refactor: cleanup
* tests: writing tests for offline feature
* refactor: removed dev-menu package and usage
* refactor: remove unused initDevMenu import
* refactor: remove un-used flipper packages
* docs: adding code comments
* refactor: removing unnecessary generics
* refactor: cleanup of mapper functions
* refactor: renaming offlineChannelsActive to staticChannelsActive
* refactor: removed metro config changes
* buiild: fixed issue with manual release script
* refactor: cleanup of handleEventToSyncDB
* refactor: fixing lint issue
* fix: removed redundant usage of useStreami18n hook
* fix: issue with message not displayed in static state
* build: updating stream-chat version
* fix: issue with appendWhereClause and undefined value
* fix: issue with members state initialization
* build: do not format on save
* fix: issue mapping memberCount to api response
* build: upgrading stream-chat version
* fix: reposition image error indicator
* refactor: use network error handling to useLoadingImage
* fix: image loading issue after network is recovered
* fix: logic for sync api and lint issues
* feat: point cameraroll dependency to the stream fork version
* fix: message.new event handling
* refactor: remove unnecessary client as hook dep
* refactor: code review changes
* refactor: moving offline support logic to Chat component
* refactor: fix lint and typescript issues
* refactor: handle quick-sqlite not being installed in better way
* docs: lint fixes
Co-authored-by: Mads Røskar <[email protected]>
Co-authored-by: stevegalili <[email protected]>
Co-authored-by: Santhosh Vaiyapuri <[email protected]>
* build: fix the doc paths
* docs: update upgrade helper doc
* docs: update upgrade helper doc with logout logic changes
* docs: change rc to beta in version label
* docs: add pod install command to upgrade helper
* build: update target branch name
* fix: flipper database plugin setup
* fix: handling of createSelectQuery function
* build: upgrade better sqlite and quick sqlite dev dep
* fix: open the selected image when pressed in the image grid (#1585)
* refactor!: rename gallery state objects to match their data
* fix: open the selected image when pressed in the image grid
* style: reorder object keys to be alphabetic
* chore: rename image grid props
* fix: rename setters to match new names
* test: update snapshots
* test: move bettersqlite test utils to src/test-utils
* test: gitignore locally generated database files
* style: reorder imports
* style: remove redundant whitespace
* refactor: export store apis
* fix: set an initial image index for the ImageGallery (#1639)
* docs: update upgrade helper guide
* docs: rename setImages and setImage
* docs: fix broken mdx imports
* docs: remove unintended newline in import
* docs: update upgrade helper guide
* feat: upgrade stream-chat to 7.0.0-offline-support.4
* docs: update upgrade helper guide
* docs: offline support docs
* ignore intelliJ files.
* Update broken external URLs
* Update broken internal links
* docs: replace cameraroll to our fork in install steps
* docs: upgrading v4 dopcs
* build: connection docusaurus gh action to develop and main
* feat: remove cameraroll fork and use v5 original cameraroll
* feat: upgrade stream-chat to v7 stable
Co-authored-by: Santhosh Vaiyapuri <[email protected]>
Co-authored-by: Vishal Narkhede <[email protected]>
Co-authored-by: Mads Røskar <[email protected]>
Co-authored-by: Mads Røskar <[email protected]>
Co-authored-by: nash0x7e2 <[email protected]>1 parent a11b5b0 commit 6358846
File tree
627 files changed
+21750
-2592
lines changed- .github/workflows
- .vscode
- bin
- docusaurus
- docs/reactnative
- basics
- common-content/contexts/image-gallery-context
- contexts
- customization
- guides
- ui-components
- reactnative_versioned_docs
- version-3.x.x
- basics
- customization
- guides
- ui-components
- version-4.x.x
- additional-resources
- assets
- api-references/components
- channel-list
- channel
- overlay-provider
- basics
- hello-stream-chat
- upgrading-from-v3
- customization
- custom-components
- theming
- typescript
- guides
- channel-list-customization
- message-actions-customization
- message-input-customization
- performance-boost
- performance-guide
- push-notifications-v2
- ui-components
- basics
- common-content
- contexts
- attachment-picker-context
- channel-context
- channels-context
- image-gallery-context
- message-context
- message-input-context
- message-overlay-context
- overlay-context
- suggestions-context
- thread-context
- core-components
- channel-list/props
- channel/props
- chat/props
- overlay-provider/props
- ui-components/channel-preview-messenger/props
- contexts
- core-components
- customization
- guides
- object-types
- ui-components
- reactnative_versioned_sidebars
- examples
- ExpoMessaging
- SampleApp
- android/app/src/debug/java/com/sampleapp
- ios
- src
- hooks
- screens
- TypeScriptMessaging
- ios
- package
- native-package
- src
- src
- __tests__
- components
- Attachment
- Avatar
- ChannelList
- hooks
- listeners
- __tests__
- ChannelPreview
- Channel
- hooks
- Chat
- hooks
- ImageGallery
- __tests__
- components
- hooks
- MessageList
- Message/MessageSimple/__tests__/__snapshots__
- Thread/__tests__/__snapshots__
- contexts
- channelContext
- channelsStateContext
- chatContext
- imageGalleryContext
- overlayContext
- paginatedMessageListContext
- hooks
- mock-builders
- DB
- event
- generator
- store
- apis
- queries
- utils
- mappers
- sqlite-utils
- __tests__
- test-utils
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
627 files changed
+21750
-2592
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
8 | | - | |
| 6 | + | |
| 7 | + | |
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| 37 | + | |
36 | 38 | | |
37 | 39 | | |
38 | 40 | | |
39 | | - | |
| 41 | + | |
40 | 42 | | |
41 | 43 | | |
42 | 44 | | |
| |||
45 | 47 | | |
46 | 48 | | |
47 | 49 | | |
48 | | - | |
49 | | - | |
50 | | - | |
| 50 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
| 74 | + | |
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
| 81 | + | |
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
154 | | - | |
| 154 | + | |
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
392 | 392 | | |
393 | 393 | | |
394 | 394 | | |
395 | | - | |
| 395 | + | |
396 | 396 | | |
397 | 397 | | |
398 | 398 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
0 commit comments