element-hq / element-android

A Matrix collaboration client for Android.
https://element.io/
Apache License 2.0
3.31k stars 696 forks source link

Replies show up as empty space (mautrix-discord bridge) #8460

Open rajil opened 1 year ago

rajil commented 1 year ago

Steps to reproduce

I am using a mautrix-discord bridge. If anybody replies to my message it shows up as a white space in Element Android. However, it renders fine in Element Desktop. If you long press on the 'empty space' and share it, Element correct shows the message in the preview popup. So it seems that the text is present but its color is matching the background color and thus it shows up as white space. The ghost message is like this,

{
  "type": "m.room.message",
  "room_id": "!redacted:redacted.com",
  "sender": "@discord_164751726268121099:redacted.com",
  "content": {
    "body": "Some text",
    "com.beeper.linkpreviews": [],
    "m.relates_to": {
      "m.in_reply_to": {
        "event_id": "$MVPSWYZFm2a4WCnSJTXLdoOc-xQkeSEeuNXiYfMovZY"
      }
    },
    "msgtype": "m.text"
  },
  "origin_server_ts": 3681727111576,
  "unsigned": {
    "age": 73538102
  },
  "event_id": "$myGciNpYTaQNWMjX-Gn5fgpzGNMXGw6cSAWcwhT3gWk",
  "user_id": "@discord_164751726268121099:redacted.com",
  "age": 73538102
}

Outcome

What did you expect?

Message to be readable in Element Android

What happened instead?

Message shows up as empty space.

Your phone model

No response

Operating system version

No response

Application version and app store

Element Android 1.6.0

Homeserver

No response

Will you send logs?

No

Are you willing to provide a PR?

No

ajay-actuary commented 1 year ago

I can reproduce this. Msgs appear as blank in the mautrix discord bridge.

rom4nik commented 1 year ago

Similar issue (no fallback in reply body): https://github.com/vector-im/element-android/issues/8432#issuecomment-1552144286