HomePhabricator
Diffusion Comm eb793d116fd1

[lib] Encode chat name in raw chat mention

Description

[lib] Encode chat name in raw chat mention

Summary:
Solution for ENG-4554.

This diff introduces encodeChatMentionText function which replaces all ] char occurrences with \].

Depends on D8902.

Test Plan:
Before testing, please apply entire native stack.

Test if chat names which include ] are encoded and rendered properly:

Reviewers: tomek, inka, rohan

Reviewed By: inka

Subscribers: ashoat, tomek

Differential Revision: https://phab.comm.dev/D8908

Details

Provenance
patrykAuthored on Sep 1 2023, 2:46 AM
Reviewer
inka
Differential Revision
D8908: [lib] Encode chat name in raw chat mention
Parents
rCOMMeadf8c40372f: [lib] Add chat mention SearchIndex selector
Branches
Unknown
Tags
Unknown