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

Arabic text messages sometimes overflow into the time stamp

Open
#3,510 1 comment 0 reactions 0 assignees View on GitHub
O-Occasional S-Major T-Defect Z-RTL
Dominant language
Kotlin
Stars
2.4k
Forks
624
Avg merge
1d 14h
Merged PRs (30d)
149

Description

### Steps to reproduce

Sometimes when sending an Arabic message (right-to-left system) the text is placed incorrectly, specifically the last line of the message is placed on the time stamp. After several tests: single-line messages are normal and correctly placed:
![a48c22e0-622c-4653-a69d-10ed00a9c208](https://github.com/user-attachments/assets/23f5051e-5761-4afc-af75-5942e29cd2f1)
As for multi-line messages, the problem occurs (according to my experience) when there is a difference in the length of the lines, while it is normal when the lines are of equal or almost equal length:
![e62d20c9-0e56-4cfa-a20d-54715fff091d](https://github.com/user-attachments/assets/b782a18e-5a9c-4187-ae4c-d77b0d0730e7)

![3193ea55-7643-44cc-aa7b-eae930a5f332](https://github.com/user-attachments/assets/395bdc30-4de7-4510-849e-832653ff24fa)

### Outcome

#### What did you expect?
Arabic text messages to be placed correctly
#### What happened instead?
Last line overflows into the timestamp

### Your phone model

Xiaomi K40 gaming

### Operating system version

Android 13

### Application version and app store

Element X version 0.6.3

### Homeserver

matrix.org

### Will you send logs?

No

### 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.