Commit 43a04c6
authored
fix(message-action-handlers): copy translated message (#3325)
## π― Goal
- Closes #3324
## π Implementation details
Applies the translated message text to the clipboard if available.
Otherwise, falls back to the original message text (which is the current
implementation).
## π§ͺ Testing
While running a React Native app in development with the Metro Server,
make the same edits to
`node_modules/stream-chat-react-native-core/src/components/Message/hooks/useMessageActionHandlers.ts`
and follow the reproduction steps in the issue. You will see that after
the applied changes, the copied text matches expectations (the string
the user is reading), rather than the original untranslated text.
## βοΈ Checklist
- [x] I have signed the [Stream
CLA](https://docs.google.com/forms/d/e/1FAIpQLScFKsKkAJI7mhCr7K9rEIOpqIDThrWxuvxnwUq2XkHyG154vQ/viewform)
(required)
- [x] PR targets the `develop` branch
- [ ] Documentation is updated
- [ ] New code is tested in main example apps, including all possible
scenarios
- [ ] SampleApp iOS and Android
- [ ] Expo iOS and Android1 parent f8c9b9a commit 43a04c6
File tree
1 file changed
+3
-1
lines changed- package/src/components/Message/hooks
1 file changed
+3
-1
lines changedLines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| 33 | + | |
32 | 34 | | |
33 | 35 | | |
34 | 36 | | |
| |||
42 | 44 | | |
43 | 45 | | |
44 | 46 | | |
45 | | - | |
| 47 | + | |
46 | 48 | | |
47 | 49 | | |
48 | 50 | | |
| |||
0 commit comments