How to mutate messages when they come in? #1047
Unanswered
robrechtme
asked this question in
Q&A
Replies: 1 comment 3 replies
-
I wouldn't recommend mutating the messages for this purpose. Instead you should customize the relevant UI components. Please take a look at custom attachments doc for this case - https://getstream.io/chat/docs/sdk/reactnative/guides/custom-attachment/ |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
You can easily manipulate messages before sending them with the
doSendMessageRequest
, but I would like to do the same thing for incoming messages.I would like to change the
asset_url
andimage_url
of attachments of all messages. What do you think would be the simplest solution? Is there a way to manipulate message objects before they are stored in theMessageContext
?Beta Was this translation helpful? Give feedback.
All reactions