Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strip direction override characters from display names #1992

Merged
merged 1 commit into from
Oct 20, 2021
Merged

Conversation

dbkr
Copy link
Member

@dbkr dbkr commented Oct 20, 2021

Strip RLO and LRO characters from name and rawDisplayName so they
can safely be embedded into other text without messing up the text
ordering.

Fixes element-hq/element-web#1712


Here's what your changelog entry will look like:

🐛 Bug Fixes

Strip RLO and LRO characters from name and rawDisplayName so they
can safely be embedded into other text without messing up the text
ordering.

Fixes element-hq/element-web#1712
@dbkr dbkr added the T-Defect label Oct 20, 2021
@dbkr dbkr requested a review from a team as a code owner October 20, 2021 15:51
dbkr added a commit to matrix-org/matrix-react-sdk that referenced this pull request Oct 20, 2021
Strip RLO & LRO chars from display names when rendering text for
member events.

See matrix-org/matrix-js-sdk#1992 - also
necessary here because we use the display name in the event content
rather than from the member object sanitised by the js-sdk.
@dbkr dbkr merged commit 59b3960 into develop Oct 20, 2021
@dbkr dbkr deleted the dbkr/fix_rtl branch October 20, 2021 16:08
dbkr added a commit to matrix-org/matrix-react-sdk that referenced this pull request Oct 20, 2021
#6999)

Strip RLO & LRO chars from display names when rendering text for
member events.

See matrix-org/matrix-js-sdk#1992 - also
necessary here because we use the display name in the event content
rather than from the member object sanitised by the js-sdk.
su-ex added a commit to SchildiChat/matrix-js-sdk that referenced this pull request Nov 8, 2021
* Mark old verification methods as deprecated ([\matrix-org#1994](matrix-org#1994)).
* Try to set a sender on search result events if possible ([\matrix-org#2004](matrix-org#2004)).
* Port some changes from group calls branch to develop ([\matrix-org#2001](matrix-org#2001)). Contributed by @SimonBrandner.
* Fetch room membership from server rather than relying on stored data ([\matrix-org#1998](matrix-org#1998)).
* Add method to fetch the MSC3266 Room Summary of a Room ([\matrix-org#1988](matrix-org#1988)).
* Don't show `Unable to access microphone` when cancelling screensharing dialog ([\matrix-org#2005](matrix-org#2005)). Fixes element-hq/element-web#19533 and element-hq/element-web#19533. Contributed by @SimonBrandner.
* Strip direction override characters from display names ([\matrix-org#1992](matrix-org#1992)). Fixes element-hq/element-web#1712 and element-hq/element-web#1712.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

RTL marks in displaynames affect following text
2 participants