Commit df2e996
feat: draft message (#3114)
* 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)
* BREAKING CHANGE: V7 release candidate
* chore: add rc channel
* fix: typo in branch name
* feat: trigger breaking change for v7 (#3005)
BREAKING CHANGE: Release V7
* 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
* 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: 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
* fix: add app changes
* feat: use new text composer for RN SDK
* 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: refine the implementation
* fix: add useCallback
* 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: bump stream-chat-js rc again
* chore: full reinstall after merge from develop
* fix: add back mistakenly removed mime dep
* feat: add poll composer
* feat: add emoji middleware and make text input better
* fix: add channel command middleware
* fix: add channel command middleware
* fix: remove unused values from message input context
* fix: remove unused values from message input context
* fix: code clean up
* fix: point out a bug with the ban user command
* fix: added option reordering fix
* fix: improve the emoji and command middleware and cleanup
* fix: quoted message state using the message composer
* fix: improve poll composer integration
* fix: reduce prop surface area from auto complete input
* fix: tests
* feat: add integration for attachment manager
* fix: yarn.lock update
* fix: poll composer crash bug
* fix: change emoji middleware name
* chore: remove workflow changes
* feat: move attachment picker context to Channel wrapper and handle only bottom sheet stuff in it
* fix: add app refactor
* fix: add app refactor
* fix: auto complete input changes
* refactor: add improvements
* refactor: add poll changes
* fix: add back react memo
* fix: input buttons hasText optimization
* fix: improve upload preview components
* fix: improve upload preview components
* fix: audio attachment issues
* chore: resolve conflicts
* fix: sync up changes
* fix: sync up changes
* fix: commands button hastext optimization
* fix: create poll options useEffect
* fix: comment
* fix: default values
* fix: try out picker in channel
* fix: attachment picker component usage
* fix: cleanup for the attachment manager
* fix: input button hasText bug
* fix: file unsupported types
* fix: style for upload unsupported indicator
* fix: improve upload new file
* fix: send button and audiorecordingbutton re-renders
* fix: send button and audiorecordingbutton re-renders
* revert: the memo change
* fix: remove profiler code
* fix: optimize send button performance
* fix: type export from audio recording button
* fix: iLocalUri utility
* fix: update yarn lock
* fix: attachment send while offline support is enabled
* fix: make sending flow faster and bug free and fix bug with cooldown
* fix: edited message usage
* fix: attachments draft middleware
* fix: make command control middleware better
* fix: use text composer for command handling
* feat: add support for draft message
* fix: draft config
* feat: add offline support for draft messages
* fix: getDraft bug and add draft support for thread list
* fix: set draft config from app
* fix: thread list listen to messagecomposer events
* fix: drafts issue
* fix: add test id
* tests: add tests
* tests: add tests
* tests: add tests
* fix: remove thread from MessageInput
* perf: messages rerendering on every composer change
* perf: remove editing state from channel ctx and add composer ctx
* fix: double editing issue
* fix: introduce hasText
* fix: quoted message edited update bug
* fix: quoted message edited update bug
* fix: close poll modal before send to avoid reset on the UI
* fix: selected picker bug
* fix: memoize the photos
* fix: performance issue with quoted message checks
* fix: further optimize memo checks
* feat: add draftscreen to sample app
* perf: separate composer ctxs and optimize usage (#3112)
* perf: abstract away composer api and usage
* fix: remove props inport and remove comments
---------
Co-authored-by: Khushal Agarwal <[email protected]>
* fix: usage of global config
* fix: usage of global config
* fix: change how message composer config is set
* fix: application of global config in sample app
* perf: make attachbutton better
* fix: editing usage
* fix: drafts messages in channel without parent id
* fix: unify the message preview component to channel preview and thread list item
* fix: add message preview to draft list
* fix: poll option animation breaking (#3115)
* fix: poll option animation breaking
* fix: add container animation
* chore: remove console.log
* fix: revert not needed prop drilling
* fix: improve draft manager
* fix: improve draft manager
* fix: remove parent_id prop
* fix: use draft attachments middlware
* fix: image upload preview loading indicator
* tests: add tests setup
* tests: add tests setup
* tests: add more tests
* perf: improve the input buttons and command input perf
* fix: sample app channel header component perf
* fix: remove isCommandUIEnabled from channel context
* chore: update yarn lock and pod file
* fix: improve uselatestmessagepreview
* fix: adjust theme changes
* refactor: introduce selectDraftMessageFromDraft
* fix: getDraft endpoint return value
* fix: register subscriptions when the thread var change
* chore: update yarn lock files
* revert: thread dep change
* fix: handle only draft events in channel preview and thread list item
* fix: delete draft message when new created
* fix: guard from parent id
* fix: get drafts with parent message and cid
* fix: remove console logs
* fix: drafts state and offline support quirks
* fix: offline mode drafts and jsi quirks
* fix: thread draft bugs, thread draft pending tasks, schema and mapping
* fix: rename type to threadId for clarity
---------
Co-authored-by: Ivan Sekovanikj <[email protected]>
Co-authored-by: Ivan Sekovanikj <[email protected]>1 parent 7b32f34 commit df2e996
File tree
56 files changed
+1838
-260
lines changed- examples
- ExpoMessaging
- SampleApp
- ios
- src
- components
- icons
- screens
- utils
- TypeScriptMessaging
- ios
- package
- expo-package
- native-package
- src
- components
- ChannelPreview
- hooks
- MessageInput
- __tests__/__snapshots__
- MessagePreview
- ThreadList
- Thread
- contexts
- messageInputContext
- hooks
- themeContext/utils
- store
- apis
- queries
- mappers
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
56 files changed
+1838
-260
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2937 | 2937 | | |
2938 | 2938 | | |
2939 | 2939 | | |
| 2940 | + | |
| 2941 | + | |
| 2942 | + | |
| 2943 | + | |
| 2944 | + | |
2940 | 2945 | | |
2941 | 2946 | | |
2942 | 2947 | | |
| |||
4065 | 4070 | | |
4066 | 4071 | | |
4067 | 4072 | | |
4068 | | - | |
4069 | | - | |
4070 | | - | |
4071 | | - | |
4072 | | - | |
4073 | 4073 | | |
4074 | 4074 | | |
4075 | 4075 | | |
| |||
7408 | 7408 | | |
7409 | 7409 | | |
7410 | 7410 | | |
7411 | | - | |
7412 | | - | |
7413 | | - | |
7414 | | - | |
7415 | | - | |
7416 | | - | |
7417 | | - | |
7418 | | - | |
7419 | | - | |
7420 | | - | |
7421 | | - | |
7422 | | - | |
7423 | | - | |
7424 | | - | |
7425 | | - | |
7426 | | - | |
7427 | | - | |
7428 | | - | |
7429 | | - | |
7430 | 7411 | | |
7431 | 7412 | | |
7432 | 7413 | | |
7433 | 7414 | | |
7434 | | - | |
7435 | | - | |
7436 | | - | |
7437 | | - | |
7438 | | - | |
7439 | | - | |
7440 | | - | |
7441 | | - | |
7442 | | - | |
7443 | | - | |
7444 | | - | |
7445 | | - | |
7446 | | - | |
7447 | | - | |
7448 | | - | |
7449 | | - | |
7450 | | - | |
7451 | | - | |
7452 | | - | |
| 7415 | + | |
| 7416 | + | |
| 7417 | + | |
| 7418 | + | |
7453 | 7419 | | |
7454 | 7420 | | |
7455 | 7421 | | |
| |||
7461 | 7427 | | |
7462 | 7428 | | |
7463 | 7429 | | |
7464 | | - | |
7465 | | - | |
7466 | | - | |
7467 | | - | |
7468 | | - | |
7469 | | - | |
7470 | | - | |
7471 | | - | |
7472 | | - | |
7473 | | - | |
7474 | | - | |
7475 | | - | |
7476 | | - | |
7477 | | - | |
7478 | | - | |
7479 | 7430 | | |
7480 | 7431 | | |
7481 | 7432 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| 38 | + | |
| 39 | + | |
37 | 40 | | |
38 | | - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
39 | 44 | | |
40 | 45 | | |
41 | 46 | | |
| |||
118 | 123 | | |
119 | 124 | | |
120 | 125 | | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
121 | 145 | | |
122 | 146 | | |
123 | 147 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2234 | 2234 | | |
2235 | 2235 | | |
2236 | 2236 | | |
2237 | | - | |
| 2237 | + | |
2238 | 2238 | | |
2239 | 2239 | | |
2240 | 2240 | | |
| |||
2662 | 2662 | | |
2663 | 2663 | | |
2664 | 2664 | | |
2665 | | - | |
| 2665 | + | |
2666 | 2666 | | |
2667 | 2667 | | |
2668 | 2668 | | |
2669 | 2669 | | |
2670 | | - | |
| 2670 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
44 | 45 | | |
45 | 46 | | |
46 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
47 | 55 | | |
48 | 56 | | |
49 | 57 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
75 | | - | |
76 | | - | |
| 74 | + | |
77 | 75 | | |
78 | 76 | | |
79 | 77 | | |
| |||
0 commit comments