element-hq / element-hq/element-android

Polls which are in reply to another message don't get rendered

Open
#8,818 0 comments 0 reactions 0 assignees View on GitHub
T-Defect
Dominant language
Kotlin
Stars
3.7k
Forks
917
Avg merge
8d 20h
Merged PRs (30d)
1

Description

### Steps to reproduce

1. Be in a groupchat
2. Have another member send a message
3. Have another member reply to the above message with a poll
4. See the poll not rendering

I don't think the Element client (and most other clients presumably) can send polls as a reply to another message. The WhatsAppBridgeBot by mautrix however copies these messages 1:1 from WhatsApp and they are shown properly in Element on Desktop, so from what I can see this should be an issue in Element mobile.
(The messages in the screenshots below were all sent by the same user in WhatsApp and bridged into Matrix by the [mautrix WhatsApp Bridge](https://github.com/mautrix/whatsapp))

**mobile view:**
![Element-mobile](https://github.com/element-hq/element-android/assets/67122180/cb0a3a3d-b9c1-4c0b-ba23-f5e14b357333)

**desktop view:**
![Element-desktop](https://github.com/element-hq/element-android/assets/67122180/a3bc6ce4-7eb7-4aae-9e17-7aea64bf6431)

### Outcome

#### What did you expect?
I expected the poll to shown up and to be able to vote in it.

#### What happened instead?
An empty message is shown.

Interestingly on a separate phone (Galaxy S10, Android 12, same Element version), while loading messages in the groupchat the poll first showed up, but as the messages finished loading the message turned blank. I presume my Pixel 6 would've had the same outcome had it loaded the messages more slowly.
-> I guess this should point to some Exception happening leading to some render method for the message body to crash and in turn return an empty body

**extra info:**
I've set PR to No as I have very little time right now, but if it might be or is an easy fix, I might be able to squeeze it in.

### Your phone model

Pixel 6

### Operating system version

Android 14

### Application version and app store

Element 1.6.12 F-Droid

### Homeserver

Synapse (should be latest, I don't have access to the exact version right now)

### Will you send logs?

Yes

### Are you willing to provide a PR?

No

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.