element-hq / element-android

A Matrix collaboration client for Android.
https://element.io/
GNU Affero General Public License v3.0
3.35k stars 713 forks source link

Unable to type messages, the text deletes itself #7897

Open du82 opened 1 year ago

du82 commented 1 year ago

Steps to reproduce

  1. Open any room
  2. Type something in the text box (I had to use the rich text editor, the normal one crashes the app entirely)
  3. Observe

Notes:

Outcome

What did you expect?

I expected the message to type properly

What happened instead?

The text box glitches out and deletes my messages See video below:

https://user-images.githubusercontent.com/65834069/210668726-a00a45cc-b0a5-4ebc-a518-16a2570e7c8c.mp4

Your phone model

OnePlus Nord N20 5G China Edition

Operating system version

Android 11

Application version and app store

Element version 1.5.18

Homeserver

uxn.one

Will you send logs?

Yes

Are you willing to provide a PR?

No

jmartinesp commented 1 year ago

There seem to be 2 different bugs in this report:

  1. App crashing when using the current message composer.
  2. Text being deleted when using the rich text editor composer. We have to pre-process the input, so this sometimes happens if the IME input doesn't match what we expect.

Could you tell us which keyboard are you using so we can try to reproduce the issues?

Kruegerrr commented 1 year ago

The IME @du82 used in the video is Trime, a buggy but open source IME for Chinese. Nevertheless, I believe this issue is related to how element handles inline composing. I have encountered a similar bug when using Chinese Pinyin keyboard of Gboard with inline composing enabled.

Kruegerrr commented 1 year ago

See #8521