Skip to content

Chat text breaks when mixing RTL and LTR in same line (e.g., Russian/English + Persian) #133

Description

@Pakrohk

Bug Description

When writing a chat message that mixes an LTR language (like Russian or English) with an RTL word (like Persian or Arabic) in the same line, the text rendering breaks. After typing the RTL word, the rest of the sentence jumps to the wrong side and the entire sequence becomes reversed or misordered.
This is a bidirectional (BiDi) text issue.

Example in Russian + Persian:
"Я люблю سلام как дела"
→ After "سلام", the rest ("как дела") appears on the wrong side.

Steps to Reproduce

  1. Open any chat in Extera.
  2. Type an LTR sentence (e.g., in Russian or English).
  3. Insert an RTL word (e.g., Persian "سلام" or Arabic "كتاب") in the middle.
  4. Continue typing LTR after that word.
  5. Observe the broken reordering.

Expected Behavior

The sentence should display naturally with proper BiDi support: RTL text flows right-to-left, LTR text flows left-to-right, without breaking the word order (just like in Telegram, WhatsApp, or any properly implemented chat).

App Version

26.2.9

Additional Platform Information

Device: Android

Additional Context

This is likely caused by missing Unicode control characters (LRM/RLM) or incorrect textDirection / layoutDirection settings on the message input or message bubble views.
I can provide a screen recording if needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions