element-hq / element-hq/element-x-android

weird bubble scaling with attached media that lacks a thumbnail

Open
#2,666 0 comments 1 reaction 0 assignees View on GitHub
A-Event Rendering A-Media O-Uncommon S-Minor T-Defect
Dominant language
Kotlin
Stars
2.4k
Forks
624
Avg merge
1d 14h
Merged PRs (30d)
149

Description

### Steps to reproduce

1. See a video that lacks a thumbnail in the timeline, with a media caption
2. Observe issue

### Outcome

#### What did you expect?
The message bubble should at most have the width of the video.
#### What happened instead?
The message was at 100% width, disproportionate to the video's metadata

### Your phone model

Poco F3

### Operating system version

Android 13; LineageOS

### Application version and app store

nightly, a46ff736

### Homeserver

tchncs.de

### Will you send logs?

Yes

### Are you willing to provide a PR?

No

---

## more context

Here is a screenshot of the message, a permalink to it, as well as the message JSON:

```json
{"content":{"body":"Great to see this works on beeper","com.beeper.origin_client_ts":1712461638525,"com.beeper.origin_client_type":"android","com.beeper.origin_client_version":"4.5.4","file":{"hashes":{"sha256":"0Bfl3rFIkGzDc6FH7s0uxcOGkm/xcZhxBFO64urhqoY"},"iv":"VkDebOY6iNIanM+1OiiLsg","key":{"alg":"A256CTR","ext":true,"k":"Jo6xmeoeM9BRCdGZ3tsYuSRXUhNUNTI2Lml7EDJ4EQY","key_ops":["encrypt","decrypt"],"kty":"oct"},"url":"mxc://beeper.com/31ae7c95642da7a8ed72868f930e2aa553e72826","v":"v2"},"filename":"screen-20240407-054708.mp4","info":{"h":1600,"mimetype":"video/mp4","size":3948575,"w":720},"m.relates_to":{"m.in_reply_to":{"event_id":"$uujEm2KYa3r_v_gY0EJ5mO0MqUNmDebVu4scog9CeE0"}},"msgtype":"m.video"},"origin_server_ts":1712461643753,"room_id":"!KlacjKWnARbprTLuRM:nova.chat","sender":"@rush:beeper.com","type":"m.room.message","unsigned":{},"event_id":"$59GGF82Zy4eR4c9DcEkLoysfDN44mlkk-shc4MdkgbM","user_id":"@rush:beeper.com"}
```

Permalink: https://matrix.to/#/!KlacjKWnARbprTLuRM:nova.chat/$59GGF82Zy4eR4c9DcEkLoysfDN44mlkk-shc4MdkgbM

Screenshot:
![Screenshot_20240407-120436_Element X nightly_1](https://github.com/element-hq/element-x-android/assets/58338843/68fc4ce6-33a8-4590-98ec-b00e447a526d)

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.