Commit 055199d
feat: offline support v2 (#3096)
* chore: modify gh workflows
* feat: removal of StreamChatGenerics (#2993)
* feat: remove StreamChatGenerics and introduce interface merging
* fix: some of the outstanding todos
* chore: add default interfaces
* chore: remove SCG from sample app
* fix: remove redundant types
* fix: remove type module
* fix: change the way interface declaration is consumed
* fix: ignore ts complaints for interface declaration
* chore: migrate TypescriptMessagingApp away from SCG
* chore: migrate the Expo sample app away from SCG
* fix: commit missing files
* fix: revert mistaken change
* fix: add resolutions for symlinked libs
* chore: remove support for react-native-document-picker (#3000)
* chore: add rc channel
* fix: typo in branch name
* chore: remove dryRun
* chore: bump stream-chat version to latest rc
* chore: bump stream-chat to latest
* feat: introduce expo-video support (#3010)
* feat: introduce support for expo-video
* fix: remove redundant test
* fix: add check for audio component
* fix: lint issues
* fix: different types inference with latest stream-chat changes
* chore(deps): update sample apps too
* fix: remove generics from new hook
* fix: remove remnants from SCG and fix missing types
* fix: lint issues
* fix: replace TouchableOpacity with Pressable
* fix: move to RN TouchableOpacity instead
* chore(deps): update peer deps
* chore: remove unused hooks
* chore: remove deps scope
* feat: move queryChannels events to LLC
* feat: move sync manager to LLC too
* chore: remove no longer used code
* chore: revert threads fix to move it to develop
* fix: lint issues
* feat: include sending reactions in llc
* feat: add delete reactions and fix sending reactions
* fix: adapt to new api
* feat: add hard and soft deletes in the db
* fix: remove await
* fix: ts errors
* feat: move app settings logic to LLC
* fix: non-unique reactions and db writes
* fix: move reaction removal updates to llc and update
* fix: bottom sheet closing on received reaction
* feat: implement selective fetching from offline db
* feat: move fetching reactions to llc
* fix: make reaction updates realtime
* fix: properly take enforced unique reactions into account
* feat: move poll db updates to llc
* chore: cleanup of redundant code
* fix: all instances of FormatMessageResponse in respect to the new llc changes
* chore: ref branch specifically
* fix: try clearing cache
* fix: remove cache clean
* fix: remove console.log
* fix: use latest commit
* fix: use latest rc of llc
* chore: use specific commit again
* fix: SCG remnants from merge
* fix: channel watching edge case
* fix: own reactions
* feat: sync api and reactions to sync api as well as ws
* perf: message simple perf improvements for swipe to reply
* chore: cleanupo
* fix: lint issues
* fix: lint issues
* fix: unify file and image types (#3050)
* fix: unify file and image types
* fix: refine types
* fix: remove props from auto complete input
* chore: update deps
* fix: failing tests and AutoCompleteInput type
* chore: update custom data module interfaces
* fix: change RNFile to FileReference as per latest client changes (#3061)
* fix: merge conflicts
* fix: remove MessageType type from the SDK
* fix: resolve conflicts from V7 branch
* fix: broken tests
* fix: useMessageActions remove reserved fields logic
* revert: useMessageActions change
* fix: confine readBy data to Message Status component
* fix: change date separator and group styles to ref
* feat: move new message handling to llc
* fix: add app changes
* feat: move message deleting to llc completely
* feat: fix test and move read events to llc
* fix: bump stream-chat to latest rc
* chore: bump stream-chat version to latest rc again
* fix: thread messages state not updating properly
* chore: change type to inferred one
* fix: set correct core lib versions
* chore: bump stream-chat to latest rc again
* chore: update sample app yarn.locks as well
* fix: lint issues
* feat: move members and message updated events to llc
* fix: keyboard taking full screen issue when the prefer cross-fade transition setting is enabled (#3073)
* fix: respect the hasCommand channel prop as well
* fix: keybaord taking full screen issue when the prefer cross-fade transition setting is enabled (#3072)
* fix: keybaord taking full screen issue when the prefer cross-fade transition setting is enabled
* chore: add delete channel api
* chore: bump stream-chat-js rc again
* chore: full reinstall after merge from develop
* fix: add back mistakenly removed mime dep
* feat: move channel updated, visibility and deleted events to llc
* feat: move more event handling to llc
* fix: channel guard queries and improve member tests
* feat: move truncated event to llc
* feat: reimplement channel manager handling and retry policy
* fix: muted channels not updating properly
* chore: cleanup
* fix: broken tests
* fix: broken tests and weird edge cases
* feat: add support for pinning and archiving in the offline db
* perf: parallelize getChannels
* feat: reimplement dropPendingTasks
* fix: make sure membership is part of members
* chore: update sample app
* fix: corrupt member response in membership
* fix: PN channel navigation
* chore: cleanup of old stuff
* chore: rename flush to execute
* fix: only process healthcheck event on first connection
* fix: white screen on opening channel from PN
* chore: extend truncation testsa
* fix: take reads into account in tests as well
* chore: add more tests for offline support
* chore: cover all reaction cases for offline mode
* chore: add mark unread tests and update read tests in db
* chore: add tests for updating message on reactions
* fix: tests happy path
* chore: add tests for send message pending tasks
* chore: remove logs and lint issues
* chore: add read checks for message.new as well
* chore: add test for own messages and read
* chore: cleanup
* chore: add stream-chat beta version
* chore: add gh workflow changes for app build
* fix: modify app settings fetching logic as per develop changes
* chore: remove console.log
* fix: remove redundant query
* fix: remove console.log again
* chore: bump stream chat offline beta version
* fix: critical message state mutation issue
* fix: properly handle failed messages in the offline case
* fix: error on offline msgs
* chore: bump stream-chat to latest beta
* fix: pr remarks
* chore: revert GH workflows and update sample apps
* chore: bump to actual stream-chat version and modify types
---------
Co-authored-by: Khushal Agarwal <[email protected]>1 parent ce8a2e0 commit 055199d
File tree
73 files changed
+2093
-1494
lines changed- examples
- ExpoMessaging
- SampleApp
- ios
- src/screens
- TypeScriptMessaging
- ios
- package
- src
- __tests__/offline-support
- components
- ChannelList
- hooks
- ChannelPreview/hooks
- Channel
- Chat
- __tests__
- hooks
- MessageMenu
- hooks
- contexts/messagesContext
- mock-builders
- event
- generator
- store
- apis
- queries
- mappers
- utils
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
73 files changed
+2093
-1494
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7427 | 7427 | | |
7428 | 7428 | | |
7429 | 7429 | | |
7430 | | - | |
7431 | | - | |
7432 | | - | |
| 7430 | + | |
| 7431 | + | |
| 7432 | + | |
| 7433 | + | |
| 7434 | + | |
| 7435 | + | |
| 7436 | + | |
| 7437 | + | |
| 7438 | + | |
| 7439 | + | |
| 7440 | + | |
| 7441 | + | |
| 7442 | + | |
| 7443 | + | |
| 7444 | + | |
| 7445 | + | |
| 7446 | + | |
| 7447 | + | |
7433 | 7448 | | |
7434 | 7449 | | |
7435 | 7450 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2578 | 2578 | | |
2579 | 2579 | | |
2580 | 2580 | | |
2581 | | - | |
| 2581 | + | |
2582 | 2582 | | |
2583 | 2583 | | |
2584 | | - | |
| 2584 | + | |
2585 | 2585 | | |
2586 | 2586 | | |
2587 | 2587 | | |
2588 | 2588 | | |
2589 | 2589 | | |
2590 | 2590 | | |
2591 | | - | |
2592 | | - | |
2593 | | - | |
| 2591 | + | |
| 2592 | + | |
| 2593 | + | |
2594 | 2594 | | |
2595 | | - | |
2596 | | - | |
2597 | | - | |
2598 | | - | |
2599 | | - | |
| 2595 | + | |
| 2596 | + | |
| 2597 | + | |
| 2598 | + | |
| 2599 | + | |
2600 | 2600 | | |
2601 | | - | |
2602 | | - | |
2603 | | - | |
2604 | | - | |
2605 | | - | |
2606 | | - | |
2607 | | - | |
2608 | | - | |
2609 | | - | |
2610 | | - | |
2611 | | - | |
2612 | | - | |
2613 | | - | |
2614 | | - | |
2615 | | - | |
2616 | | - | |
2617 | | - | |
2618 | | - | |
2619 | | - | |
2620 | | - | |
2621 | | - | |
2622 | | - | |
2623 | | - | |
2624 | | - | |
| 2601 | + | |
| 2602 | + | |
| 2603 | + | |
| 2604 | + | |
| 2605 | + | |
| 2606 | + | |
| 2607 | + | |
| 2608 | + | |
| 2609 | + | |
| 2610 | + | |
| 2611 | + | |
| 2612 | + | |
| 2613 | + | |
| 2614 | + | |
| 2615 | + | |
| 2616 | + | |
| 2617 | + | |
| 2618 | + | |
| 2619 | + | |
| 2620 | + | |
| 2621 | + | |
| 2622 | + | |
| 2623 | + | |
| 2624 | + | |
2625 | 2625 | | |
2626 | | - | |
2627 | | - | |
2628 | | - | |
2629 | | - | |
2630 | | - | |
2631 | | - | |
2632 | | - | |
2633 | | - | |
2634 | | - | |
2635 | | - | |
2636 | | - | |
| 2626 | + | |
| 2627 | + | |
| 2628 | + | |
| 2629 | + | |
| 2630 | + | |
| 2631 | + | |
| 2632 | + | |
| 2633 | + | |
| 2634 | + | |
| 2635 | + | |
| 2636 | + | |
2637 | 2637 | | |
2638 | | - | |
| 2638 | + | |
2639 | 2639 | | |
2640 | | - | |
2641 | | - | |
| 2640 | + | |
| 2641 | + | |
2642 | 2642 | | |
2643 | | - | |
2644 | | - | |
| 2643 | + | |
| 2644 | + | |
2645 | 2645 | | |
2646 | | - | |
2647 | | - | |
2648 | | - | |
2649 | | - | |
2650 | | - | |
2651 | | - | |
2652 | | - | |
2653 | | - | |
2654 | | - | |
2655 | | - | |
2656 | | - | |
2657 | | - | |
2658 | | - | |
2659 | | - | |
2660 | | - | |
2661 | | - | |
| 2646 | + | |
| 2647 | + | |
| 2648 | + | |
| 2649 | + | |
| 2650 | + | |
| 2651 | + | |
| 2652 | + | |
| 2653 | + | |
| 2654 | + | |
| 2655 | + | |
| 2656 | + | |
| 2657 | + | |
| 2658 | + | |
| 2659 | + | |
| 2660 | + | |
| 2661 | + | |
2662 | 2662 | | |
2663 | 2663 | | |
2664 | 2664 | | |
2665 | | - | |
| 2665 | + | |
2666 | 2666 | | |
2667 | 2667 | | |
2668 | 2668 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
127 | | - | |
| 127 | + | |
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
132 | | - | |
133 | | - | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
134 | 138 | | |
135 | 139 | | |
136 | 140 | | |
137 | 141 | | |
138 | 142 | | |
139 | | - | |
| 143 | + | |
140 | 144 | | |
141 | 145 | | |
142 | 146 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7568 | 7568 | | |
7569 | 7569 | | |
7570 | 7570 | | |
7571 | | - | |
7572 | | - | |
7573 | | - | |
| 7571 | + | |
| 7572 | + | |
| 7573 | + | |
| 7574 | + | |
| 7575 | + | |
| 7576 | + | |
| 7577 | + | |
| 7578 | + | |
| 7579 | + | |
| 7580 | + | |
| 7581 | + | |
| 7582 | + | |
| 7583 | + | |
| 7584 | + | |
| 7585 | + | |
| 7586 | + | |
| 7587 | + | |
| 7588 | + | |
7574 | 7589 | | |
7575 | 7590 | | |
7576 | 7591 | | |
| |||
0 commit comments