RTL+LTR text in nickname makes contact with 2+ resources look wrong in roster
This is non-trivial bug.
Test case:
-
a contact with nickname that contains both Left-To-Right and Right-To-Left text (e.g. a group of Latin and a group of Arabic symbols, the Latin group first) and
-
such contact is online with two or more resources connected
What is expected:
For LTR environment: \<Latin>\<Arabic> (\<res.count>)
For RTL environment: (\<res.count>) \<Arabic>\<Latin>
(though I'm not sure — never tried RTL environments)
How does it really look now:
For LTR environment: \<Latin> \<res.count>)\<Arabic>)
For RTL environment: don't know.