RocketChat / RocketChat/Rocket.Chat.ReactNative
Text is not rendering with image in attachment
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 2.4k
- Forks
- 1.5k
- Avg merge
- 1d 18h
- Merged PRs (30d)
- 90
Description
Description:
When i send message with an image in attachment only attached image is shown. If there is no image in attachment, text renders properly.
Test messages on web:

This messages on Android

Environment Information:
- Rocket.Chat Server Version: 6.1.0
- Rocket.Chat App Version: 4.36.0.38053
- Device Name: Pixel 3
- OS Version: Android 12
Steps to reproduce:
Send test message with webhook
curl -X POST -H 'Content-Type: application/json' --data '{"text":"Example message","attachments":[{"title":"Rocket.Chat","title_link":"https://rocket.chat","text":"Rocket.Chat, the best open source chat","image_url":"https://chat.intermb.ru/images/integration-attachment-example.png","color":"#764FA5"}]}' https://rocketchat-webhook-url
-> No attachment text shown in mobile app.
Send test message without image:
curl -X POST -H 'Content-Type: application/json' --data '{"text":"Example message","attachments":[{"title":"Rocket.Chat","title_link":"https://rocket.chat","text":"Rocket.Chat, the best open source chat","color":"#764FA5"}]}' https://rocketchat-webhook-url
-> Attachment text is shown.
Expected behavior:
Image and attachment text are shown in mobile app
Actual behavior:
Showing only text or image in mobile app.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the webhook message on Android using the two curl payloads in the issue, comparing behavior with and without image_url. Trace the mobile attachment rendering path and verify that a message containing both an image and attachment text displays both elements.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react-native, typescript
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100