Skip to content

feat: draft message #3114

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 223 commits into from
Jun 18, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
223 commits
Select commit Hold shift + click to select a range
6c1f94d
chore: modify gh workflows
isekovanic Mar 7, 2025
e443caf
feat: removal of StreamChatGenerics (#2993)
isekovanic Mar 7, 2025
4e6c4b7
chore: remove support for react-native-document-picker (#3000)
isekovanic Mar 7, 2025
d0dd875
Merge branch 'develop' into V7
isekovanic Mar 10, 2025
74a3978
BREAKING CHANGE: V7 release candidate
isekovanic Mar 10, 2025
f519f8a
chore: add rc channel
isekovanic Mar 10, 2025
f359909
fix: typo in branch name
isekovanic Mar 10, 2025
aca5620
feat: trigger breaking change for v7 (#3005)
isekovanic Mar 10, 2025
dfbdcb3
chore: remove dryRun
isekovanic Mar 10, 2025
7243093
chore: bump stream-chat version to latest rc
isekovanic Mar 10, 2025
1f84064
chore: bump stream-chat to latest
isekovanic Mar 11, 2025
228d559
feat: introduce expo-video support (#3010)
isekovanic Mar 12, 2025
52ef753
Merge branch 'develop' into V7
isekovanic Mar 12, 2025
ad0dbc8
fix: lint issues
isekovanic Mar 12, 2025
35dc66e
fix: different types inference with latest stream-chat changes
isekovanic Mar 13, 2025
a070115
chore(deps): update sample apps too
isekovanic Mar 13, 2025
dbdb27e
Merge branch 'develop' into V7
isekovanic Mar 13, 2025
8ec7617
fix: remove generics from new hook
isekovanic Mar 13, 2025
e49b9c0
fix: remove remnants from SCG and fix missing types
isekovanic Mar 13, 2025
b3c67eb
fix: lint issues
isekovanic Mar 13, 2025
1d28a1a
fix: replace TouchableOpacity with Pressable
isekovanic Mar 13, 2025
9154fdd
fix: move to RN TouchableOpacity instead
isekovanic Mar 13, 2025
9569c98
chore(deps): update peer deps
isekovanic Mar 13, 2025
39f4f82
chore: remove unused hooks
isekovanic Mar 13, 2025
e8db262
chore: remove deps scope
isekovanic Mar 13, 2025
f509a27
Merge branch 'develop' into V7
isekovanic Mar 17, 2025
2f336f3
fix: all instances of FormatMessageResponse in respect to the new llc…
isekovanic Apr 1, 2025
98349dd
chore: ref branch specifically
isekovanic Apr 1, 2025
a40724c
fix: try clearing cache
isekovanic Apr 1, 2025
7ea6f38
fix: remove cache clean
isekovanic Apr 1, 2025
fa903f0
fix: remove console.log
isekovanic Apr 2, 2025
fdc9774
fix: use latest commit
isekovanic Apr 2, 2025
e01a1b0
fix: use latest rc of llc
isekovanic Apr 2, 2025
eae044b
chore: use specific commit again
isekovanic Apr 2, 2025
e3d2bc4
Merge branch 'develop' into V7
isekovanic Apr 2, 2025
40dee7e
fix: SCG remnants from merge
isekovanic Apr 2, 2025
d4237bb
Merge branch 'develop' into V7
isekovanic Apr 9, 2025
b947266
fix: lint issues
isekovanic Apr 9, 2025
51361c1
Merge branch 'develop' into V7
isekovanic Apr 10, 2025
491a957
fix: lint issues
isekovanic Apr 10, 2025
b28252b
fix: unify file and image types (#3050)
khushal87 Apr 10, 2025
9ab351d
chore: update deps
isekovanic Apr 10, 2025
e34273c
fix: failing tests and AutoCompleteInput type
isekovanic Apr 11, 2025
3d461d0
chore: update custom data module interfaces
isekovanic Apr 14, 2025
ab7973f
fix: change RNFile to FileReference as per latest client changes (#3061)
khushal87 Apr 22, 2025
af2d2fd
Merge branch 'develop' into V7
isekovanic Apr 23, 2025
9375fa4
fix: merge conflicts
isekovanic Apr 23, 2025
4ad47a1
fix: remove MessageType type from the SDK
khushal87 Apr 23, 2025
96e9401
fix: resolve conflicts from V7 branch
khushal87 Apr 23, 2025
ef3a2a7
fix: resolve conflicts from V7 branch
khushal87 Apr 23, 2025
b1823a8
fix: broken tests
khushal87 Apr 23, 2025
b787c47
fix: useMessageActions remove reserved fields logic
khushal87 Apr 24, 2025
65881a7
revert: useMessageActions change
khushal87 Apr 24, 2025
3f6d111
fix: confine readBy data to Message Status component
khushal87 Apr 24, 2025
3038e7b
fix: change date separator and group styles to ref
khushal87 Apr 25, 2025
54ce9c6
fix: add app changes
khushal87 Apr 28, 2025
a00a670
feat: use new text composer for RN SDK
khushal87 Apr 28, 2025
5f62753
fix: bump stream-chat to latest rc
isekovanic Apr 28, 2025
cc33ccb
Merge branch 'V7' of github.com:GetStream/stream-chat-react-native in…
khushal87 Apr 29, 2025
e14c614
chore: bump stream-chat version to latest rc again
isekovanic Apr 29, 2025
ba1df1d
Merge pull request #3064 from GetStream/remove-messagetype-type
isekovanic Apr 29, 2025
8467b22
fix: thread messages state not updating properly
isekovanic Apr 29, 2025
33d158a
chore: change type to inferred one
isekovanic Apr 29, 2025
6c96dee
Merge pull request #3068 from GetStream/fix/thread-messages-setting-b…
isekovanic Apr 29, 2025
948b6db
fix: set correct core lib versions
isekovanic Apr 29, 2025
de777de
Merge branch 'develop' into V7
isekovanic Apr 29, 2025
77369b6
chore: bump stream-chat to latest rc again
isekovanic Apr 29, 2025
75117d5
chore: update sample app yarn.locks as well
isekovanic Apr 29, 2025
1e421f4
fix: refine the implementation
khushal87 Apr 30, 2025
0c154ec
fix: add useCallback
khushal87 Apr 30, 2025
10d934c
fix: keyboard taking full screen issue when the prefer cross-fade tra…
khushal87 Apr 30, 2025
36ceec1
chore: bump stream-chat-js rc again
isekovanic Apr 30, 2025
ee9e05c
Merge branch 'develop' into V7
isekovanic Apr 30, 2025
dbef2f3
chore: full reinstall after merge from develop
isekovanic Apr 30, 2025
16c16a4
fix: add back mistakenly removed mime dep
isekovanic Apr 30, 2025
1c45b51
feat: add poll composer
khushal87 May 1, 2025
0eb0484
feat: add emoji middleware and make text input better
khushal87 May 2, 2025
fcf98f9
fix: add channel command middleware
khushal87 May 5, 2025
f99b02f
fix: add channel command middleware
khushal87 May 5, 2025
bbcf5f7
fix: remove unused values from message input context
khushal87 May 5, 2025
5648653
fix: remove unused values from message input context
khushal87 May 5, 2025
2ae81e9
fix: code clean up
khushal87 May 5, 2025
b35d4bc
fix: point out a bug with the ban user command
khushal87 May 5, 2025
9a6f38f
fix: added option reordering fix
khushal87 May 6, 2025
fdd9576
chore: resolve conflicts from develop
khushal87 May 6, 2025
5a69670
fix: improve the emoji and command middleware and cleanup
khushal87 May 6, 2025
3b7957c
feat: add poll composer changes
khushal87 May 7, 2025
e9ebac4
fix: quoted message state using the message composer
khushal87 May 7, 2025
f6a20b6
fix: improve poll composer integration
khushal87 May 12, 2025
1cf9027
fix: reduce prop surface area from auto complete input
khushal87 May 12, 2025
168c41c
fix: tests
khushal87 May 13, 2025
ea45f36
chore: resolve conflicts
khushal87 May 13, 2025
075300d
Merge branch 'V8' of github.com:GetStream/stream-chat-react-native in…
khushal87 May 13, 2025
9fdc606
feat: add integration for attachment manager
khushal87 May 20, 2025
d7206e8
fix: yarn.lock update
khushal87 May 20, 2025
76f0ed2
fix: poll composer crash bug
khushal87 May 20, 2025
a767e07
chore: resolve conflicts from V8
khushal87 May 20, 2025
28f1cc2
fix: change emoji middleware name
khushal87 May 20, 2025
0daf719
Merge branch 'develop' of github.com:GetStream/stream-chat-react-nati…
khushal87 May 20, 2025
c5a84a5
chore: remove workflow changes
khushal87 May 20, 2025
6cb45ca
feat: move attachment picker context to Channel wrapper and handle on…
khushal87 May 21, 2025
683d780
fix: add app refactor
khushal87 May 21, 2025
0417f26
fix: add app refactor
khushal87 May 21, 2025
eb93314
fix: auto complete input changes
khushal87 May 21, 2025
ed1b318
refactor: add improvements
khushal87 May 21, 2025
31f88aa
refactor: add poll changes
khushal87 May 21, 2025
7a8f009
fix: add back react memo
khushal87 May 21, 2025
40bd3cc
Merge branch 'V8' of github.com:GetStream/stream-chat-react-native in…
khushal87 May 21, 2025
53c5285
fix: input buttons hasText optimization
khushal87 May 21, 2025
5be9ded
fix: improve upload preview components
khushal87 May 21, 2025
21589ea
fix: improve upload preview components
khushal87 May 21, 2025
7c1bba3
fix: audio attachment issues
khushal87 May 22, 2025
7c6013b
chore: resolve conflicts
khushal87 May 22, 2025
4a6b7f9
chore: resolve conflicts
khushal87 May 22, 2025
7778b04
chore: update files from base branch
khushal87 May 22, 2025
0e01b3d
fix: sync up changes
khushal87 May 22, 2025
deb81dd
fix: sync up changes
khushal87 May 22, 2025
3c3893c
fix: commands button hastext optimization
khushal87 May 22, 2025
181e6a6
fix: create poll options useEffect
khushal87 May 22, 2025
7b9d7fa
fix: comment
khushal87 May 22, 2025
c353a32
fix: default values
khushal87 May 22, 2025
f16e476
fix: try out picker in channel
khushal87 May 23, 2025
115b21a
fix: attachment picker component usage
khushal87 May 23, 2025
3ac8e8b
Merge branch 'new-text-composer' of github.com:GetStream/stream-chat-…
khushal87 May 23, 2025
9ba3644
fix: cleanup for the attachment manager
khushal87 May 23, 2025
05629c0
fix: input button hasText bug
khushal87 May 23, 2025
f7151ac
fix: file unsupported types
khushal87 May 23, 2025
0d7b665
fix: style for upload unsupported indicator
khushal87 May 23, 2025
bcf5fb4
fix: improve upload new file
khushal87 May 23, 2025
1fc7d98
fix: send button and audiorecordingbutton re-renders
khushal87 May 24, 2025
e25b355
fix: send button and audiorecordingbutton re-renders
khushal87 May 24, 2025
9ce715e
revert: the memo change
khushal87 May 24, 2025
5660941
fix: remove profiler code
khushal87 May 24, 2025
90bd97c
fix: optimize send button performance
khushal87 May 26, 2025
23e9e31
chore: resolve conflict from base branch
khushal87 May 26, 2025
21aaa42
fix: type export from audio recording button
khushal87 May 26, 2025
8d44cae
Merge branch 'attachment-manager-integration' of github.com:GetStream…
khushal87 May 26, 2025
1f12e52
fix: iLocalUri utility
khushal87 May 26, 2025
896591e
fix: update yarn lock
khushal87 May 26, 2025
8b4268c
fix: attachment send while offline support is enabled
khushal87 May 26, 2025
2181a6c
fix: make sending flow faster and bug free and fix bug with cooldown
khushal87 May 26, 2025
87f415e
chore: resolve conflicts from base branch
khushal87 May 26, 2025
e6774d0
fix: edited message usage
khushal87 May 27, 2025
261a0b5
fix: attachments draft middleware
khushal87 May 27, 2025
c9380f1
fix: make command control middleware better
khushal87 May 27, 2025
73821ca
fix: use text composer for command handling
khushal87 May 29, 2025
d2aa9ba
feat: add support for draft message
khushal87 May 29, 2025
68be3d9
fix: draft config
khushal87 May 29, 2025
c63961f
chore: resolve conflicts from V8
khushal87 May 29, 2025
13e388d
Merge branch 'attachment-manager-integration' of github.com:GetStream…
khushal87 May 29, 2025
75087db
feat: add offline support for draft messages
khushal87 May 30, 2025
71024ac
fix: getDraft bug and add draft support for thread list
khushal87 May 30, 2025
a24b42e
fix: set draft config from app
khushal87 May 30, 2025
d09e2a2
fix: thread list listen to messagecomposer events
khushal87 May 30, 2025
e633109
fix: drafts issue
khushal87 May 31, 2025
ad6ad42
fix: add test id
khushal87 Jun 3, 2025
51cd7d5
tests: add tests
khushal87 Jun 3, 2025
afabb1d
tests: add tests
khushal87 Jun 3, 2025
94306e0
tests: add tests
khushal87 Jun 3, 2025
d71cb3f
fix: remove thread from MessageInput
khushal87 Jun 3, 2025
4aa4dd0
perf: messages rerendering on every composer change
isekovanic Jun 3, 2025
5a3d9c2
perf: remove editing state from channel ctx and add composer ctx
isekovanic Jun 3, 2025
90c3e40
fix: double editing issue
isekovanic Jun 3, 2025
86fe540
fix: introduce hasText
isekovanic Jun 3, 2025
0edcacd
feat: improve attachment picker context usage
khushal87 Jun 3, 2025
66dc1ca
chore: resolve conflicts from base branch
khushal87 Jun 3, 2025
2365e5b
fix: quoted message edited update bug
khushal87 Jun 4, 2025
b587b74
fix: quoted message edited update bug
khushal87 Jun 4, 2025
c9a10dd
fix: close poll modal before send to avoid reset on the UI
khushal87 Jun 4, 2025
dcd8919
fix: selected picker bug
khushal87 Jun 4, 2025
f137f01
fix: memoize the photos
khushal87 Jun 4, 2025
94c766a
chore: pull changes from base branch
khushal87 Jun 5, 2025
40bac0e
fix: performance issue with quoted message checks
isekovanic Jun 5, 2025
fe8c6d1
fix: further optimize memo checks
isekovanic Jun 5, 2025
5daf7f2
feat: add draftscreen to sample app
khushal87 Jun 6, 2025
2892a3b
perf: separate composer ctxs and optimize usage (#3112)
isekovanic Jun 6, 2025
cf9ccf7
Merge branch 'attachment-manager-integration' of github.com:GetStream…
khushal87 Jun 6, 2025
ad22ccd
fix: usage of global config
khushal87 Jun 6, 2025
61dcb47
fix: usage of global config
khushal87 Jun 6, 2025
03732df
fix: change how message composer config is set
khushal87 Jun 6, 2025
f103b28
chore: resolve conflicts from base branch
khushal87 Jun 6, 2025
1aecd3f
fix: application of global config in sample app
khushal87 Jun 6, 2025
79e27bd
perf: make attachbutton better
khushal87 Jun 6, 2025
2e2248e
Merge branch 'attachment-manager-integration' of github.com:GetStream…
khushal87 Jun 6, 2025
9d85db5
fix: editing usage
khushal87 Jun 7, 2025
abb1b3a
fix: drafts messages in channel without parent id
khushal87 Jun 7, 2025
ca9172e
fix: unify the message preview component to channel preview and threa…
khushal87 Jun 8, 2025
bb887dd
fix: add message preview to draft list
khushal87 Jun 9, 2025
313d9f2
fix: poll option animation breaking (#3115)
isekovanic Jun 9, 2025
1e0d0e1
Merge branch 'attachment-manager-integration' of github.com:GetStream…
khushal87 Jun 9, 2025
f7e3213
fix: improve draft manager
khushal87 Jun 9, 2025
8636dd7
fix: improve draft manager
khushal87 Jun 9, 2025
44c6a6d
fix: remove parent_id prop
khushal87 Jun 9, 2025
602b505
fix: use draft attachments middlware
khushal87 Jun 9, 2025
fb0187a
fix: image upload preview loading indicator
khushal87 Jun 10, 2025
2a8aac3
tests: add tests setup
khushal87 Jun 3, 2025
0d547fa
tests: add tests setup
khushal87 Jun 10, 2025
f887ee1
tests: add more tests
khushal87 Jun 3, 2025
ace7679
chore: resolve conflicts from base branch
khushal87 Jun 10, 2025
5e45e6e
perf: improve the input buttons and command input perf
khushal87 Jun 10, 2025
dac2a5d
fix: sample app channel header component perf
khushal87 Jun 10, 2025
fc00aa4
fix: remove isCommandUIEnabled from channel context
khushal87 Jun 10, 2025
6a287f9
Merge branch 'attachment-manager-integration' of github.com:GetStream…
khushal87 Jun 10, 2025
0c9e04b
chore: resolve conflicts from V8
khushal87 Jun 10, 2025
5c31e75
chore: update yarn lock and pod file
khushal87 Jun 10, 2025
4b9d66d
fix: improve uselatestmessagepreview
khushal87 Jun 10, 2025
77377a3
fix: adjust theme changes
khushal87 Jun 10, 2025
a3e823b
refactor: introduce selectDraftMessageFromDraft
khushal87 Jun 11, 2025
e6bc2bc
fix: getDraft endpoint return value
khushal87 Jun 11, 2025
8657a81
fix: register subscriptions when the thread var change
khushal87 Jun 12, 2025
abafd5f
chore: resolve conflicts from V8
khushal87 Jun 12, 2025
7863951
chore: update yarn lock files
khushal87 Jun 12, 2025
c55c654
revert: thread dep change
khushal87 Jun 12, 2025
f4f74ef
Merge branch 'V8' of github.com:GetStream/stream-chat-react-native in…
khushal87 Jun 12, 2025
a81e677
fix: handle only draft events in channel preview and thread list item
khushal87 Jun 12, 2025
78fa341
fix: delete draft message when new created
khushal87 Jun 13, 2025
6e3dd43
fix: guard from parent id
khushal87 Jun 13, 2025
8590b45
fix: get drafts with parent message and cid
khushal87 Jun 13, 2025
301ea2b
fix: remove console logs
khushal87 Jun 13, 2025
6516c4a
fix: drafts state and offline support quirks
isekovanic Jun 16, 2025
c02a837
fix: offline mode drafts and jsi quirks
isekovanic Jun 17, 2025
f5f9977
fix: thread draft bugs, thread draft pending tasks, schema and mapping
isekovanic Jun 17, 2025
f46b2e6
fix: rename type to threadId for clarity
isekovanic Jun 18, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
67 changes: 9 additions & 58 deletions examples/ExpoMessaging/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2937,6 +2937,11 @@
dependencies:
"@types/yargs-parser" "*"

"@ungap/structured-clone@^1.3.0":
version "1.3.0"
resolved "https://registry.yarnpkg.com/@ungap/structured-clone/-/structured-clone-1.3.0.tgz#d06bbb384ebcf6c505fde1c3d0ed4ddffe0aaff8"
integrity sha512-WmoN8qaIAo7WTYWbAZuG8PYEhn5fkz7dZrqTBZ7dtt//lL2Gwms1IcnQ5yHqjDfX8Ft5j4YzDM23f87zBfDe9g==

"@urql/core@^5.0.0", "@urql/core@^5.0.6":
version "5.0.8"
resolved "https://registry.yarnpkg.com/@urql/core/-/core-5.0.8.tgz#eba39eaa2bf9a0a963383e87a65cba7a9ca794bd"
Expand Down Expand Up @@ -4065,11 +4070,6 @@ electron-to-chromium@^1.5.41:
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.69.tgz#7268a4251e82fc83a7cdc9ab51e7154bb2813038"
integrity sha512-zz4e7EbJqqtdQtwt61ZYKrfEYlV0HpGbIGRVFGOO9YBZIhg0BDXtBcWxpqyAm6oyPl2Zp8tc5FrPpCZQH/Yazg==

emoji-regex@^10.3.0:
version "10.3.0"
resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-10.3.0.tgz#76998b9268409eb3dae3de989254d456e70cfe23"
integrity sha512-QpLs9D9v9kArv4lfDEgg1X/gN5XLnf/A6l9cs8SPZLRZR3ZkY9+kwIQTxm+fsSej5UMYGE8fdoaZVIBlqG0XTw==

emoji-regex@^10.4.0:
version "10.4.0"
resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-10.4.0.tgz#03553afea80b3975749cfcb36f776ca268e413d4"
Expand Down Expand Up @@ -7408,48 +7408,14 @@ [email protected], stream-buffers@~2.2.0:
version "0.0.0"
uid ""

[email protected]:
version "7.1.0"
resolved "https://registry.yarnpkg.com/stream-chat-react-native-core/-/stream-chat-react-native-core-7.1.0.tgz#b5002ec967467a2ac4be54700e5e4e60bbd5fd97"
integrity sha512-Rfecu6kH2zBW0ufhVz076NlpOg6QxNgShGnK4js/ypjSZ4rGZIKMFHNuArLVr/uSuTWiVPNO1zMI/LyvljtwdQ==
dependencies:
"@gorhom/bottom-sheet" "^5.1.1"
dayjs "1.10.5"
emoji-regex "^10.3.0"
i18next "^21.6.14"
intl-pluralrules "^2.0.1"
linkifyjs "^4.1.1"
lodash-es "4.17.21"
mime-types "^2.1.34"
path "0.12.7"
react-native-markdown-package "1.8.2"
react-native-url-polyfill "^1.3.0"
stream-chat "^9.2.0"
use-sync-external-store "^1.4.0"

"stream-chat-react-native-core@link:../../package":
version "0.0.0"
uid ""

stream-chat@^9.2.0:
version "9.2.0"
resolved "https://registry.yarnpkg.com/stream-chat/-/stream-chat-9.2.0.tgz#f3109891ca27f17b6fd0aa6ebcf66be12df1f88c"
integrity sha512-inz3CA5tuqqSrla7qjRTCKs+coRKOYROWf0wEWYgbCu0tAUuiBTRtu1PJL1isEXIaPLiWi00BuRrBEIFon9Kng==
dependencies:
"@types/jsonwebtoken" "^9.0.8"
"@types/ws" "^8.5.14"
axios "^1.6.0"
base64-js "^1.5.1"
form-data "^4.0.0"
isomorphic-ws "^5.0.0"
jsonwebtoken "^9.0.2"
linkifyjs "^4.2.0"
ws "^8.18.1"

stream-chat@^9.3.0:
version "9.3.0"
resolved "https://registry.yarnpkg.com/stream-chat/-/stream-chat-9.3.0.tgz#35ca4db9e841eb92d07413ae156de0500ad77b23"
integrity sha512-S73B3HrvmQvJjq58Zjo50vh74juhsWsVRpT+OBjGAxSGxlA+ITkZ3vKs8Y/r2eDK7mBTMmX5QCruFaDJH5dRuw==
stream-chat@^9.5.1:
version "9.5.1"
resolved "https://registry.yarnpkg.com/stream-chat/-/stream-chat-9.5.1.tgz#b8260bc1d1470ae3c91d8c40d22f41e9c4523d7b"
integrity sha512-X9w22JfEp2cTggAwyt0gyvwe8VBy1qvJENliNen/2FJDpS3k6PCaeSO6MHNXz3c0Qy21hqxuu8/b32jCSe4LSA==
dependencies:
"@types/jsonwebtoken" "^9.0.8"
"@types/ws" "^8.5.14"
Expand All @@ -7461,21 +7427,6 @@ stream-chat@^9.3.0:
linkifyjs "^4.2.0"
ws "^8.18.1"

stream-chat@^8.57.6:
version "8.60.0"
resolved "https://registry.yarnpkg.com/stream-chat/-/stream-chat-8.60.0.tgz#b67d4fbb185da53fb8ac5fc5759986d6ad7e19a3"
integrity sha512-7FpO7Wno++r+n+x9aFuXtGYtNO06CIMd2Bxe3doYZLhMfS0nuaXloeFlGcMT0r4U/6bnguz1qQdDJUPNQAS8bQ==
dependencies:
"@babel/runtime" "^7.27.0"
"@types/jsonwebtoken" "~9.0.0"
"@types/ws" "^7.4.0"
axios "^1.6.0"
base64-js "^1.5.1"
form-data "^4.0.0"
isomorphic-ws "^4.0.1"
jsonwebtoken "~9.0.0"
ws "^7.5.10"

stream-slice@^0.1.2:
version "0.1.2"
resolved "https://registry.yarnpkg.com/stream-slice/-/stream-slice-0.1.2.tgz#2dc4f4e1b936fb13f3eb39a2def1932798d07a4b"
Expand Down
26 changes: 25 additions & 1 deletion examples/SampleApp/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { createStackNavigator } from '@react-navigation/stack';
import { SafeAreaProvider } from 'react-native-safe-area-context';
import {
Chat,
createTextComposerEmojiMiddleware,
OverlayProvider,
SqliteClient,
ThemeProvider,
Expand Down Expand Up @@ -34,8 +35,12 @@ import { OneOnOneChannelDetailScreen } from './src/screens/OneOnOneChannelDetail
import { SharedGroupsScreen } from './src/screens/SharedGroupsScreen';
import { ThreadScreen } from './src/screens/ThreadScreen';
import { UserSelectorScreen } from './src/screens/UserSelectorScreen';
import { init, SearchIndex } from 'emoji-mart';
import data from '@emoji-mart/data';

import type { LocalMessage, StreamChat } from 'stream-chat';
import type { LocalMessage, StreamChat, TextComposerMiddleware } from 'stream-chat';

init({ data });

if (__DEV__) {
DevSettings.addMenuItem('Reset local DB (offline storage)', () => {
Expand Down Expand Up @@ -118,6 +123,25 @@ const App = () => {
};
}, []);

useEffect(() => {
if (!chatClient) {
return;
}
chatClient.setMessageComposerSetupFunction(({ composer }) => {
composer.updateConfig({
drafts: {
enabled: true,
},
});

composer.textComposer.middlewareExecutor.insert({
middleware: [createTextComposerEmojiMiddleware(SearchIndex) as TextComposerMiddleware],
position: { after: 'stream-io/text-composer/mentions-middleware' },
unique: true,
});
});
}, [chatClient]);

return (
<SafeAreaProvider
style={{
Expand Down
6 changes: 3 additions & 3 deletions examples/SampleApp/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2234,7 +2234,7 @@ PODS:
- libwebp (~> 1.0)
- SDWebImage/Core (~> 5.10)
- SocketRocket (0.7.1)
- stream-chat-react-native (7.1.0):
- stream-chat-react-native (7.1.1):
- DoubleConversion
- glog
- hermes-engine
Expand Down Expand Up @@ -2662,9 +2662,9 @@ SPEC CHECKSUMS:
SDWebImage: a7f831e1a65eb5e285e3fb046a23fcfbf08e696d
SDWebImageWebPCoder: 908b83b6adda48effe7667cd2b7f78c897e5111d
SocketRocket: d4aabe649be1e368d1318fdf28a022d714d65748
stream-chat-react-native: b6555353e3f8726478abdf8614d9303cf8d8de42
stream-chat-react-native: 3d6ea43d3097dfc813d9e99fd0d6d113d3faac78
Yoga: be02ca501b03c79d7027a6bbbd0a8db985034f11

PODFILE CHECKSUM: 4f662370295f8f9cee909f1a4c59a614999a209d

COCOAPODS: 1.16.2
COCOAPODS: 1.14.3
8 changes: 8 additions & 0 deletions examples/SampleApp/src/components/BottomTabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { MentionsTab } from '../icons/MentionsTab';

import type { BottomTabBarProps } from '@react-navigation/bottom-tabs';
import type { Route } from '@react-navigation/native';
import { DraftsTab } from '../icons/DraftsTab';

const styles = StyleSheet.create({
notification: {
Expand Down Expand Up @@ -44,6 +45,13 @@ const getTab = (key: string) => {
notification: <ChannelsUnreadCountBadge />,
title: 'Chats',
};
case 'DraftsScreen':
return {
icon: <DraftsTab />,
iconActive: <DraftsTab active />,
title: 'Drafts',
notification: <ChannelsUnreadCountBadge />,
};
case 'ThreadsScreen':
return {
icon: <ThreadsTab />,
Expand Down
4 changes: 1 addition & 3 deletions examples/SampleApp/src/components/ChannelPreview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,7 @@ const CustomChannelPreviewStatus = (
);
};

export const ChannelPreview: React.FC<ChannelPreviewMessengerProps> = (
props,
) => {
export const ChannelPreview: React.FC<ChannelPreviewMessengerProps> = (props) => {
const { channel } = props;

const { setOverlay } = useAppOverlayContext();
Expand Down
Loading
Loading