HomePhabricator
Diffusion Comm 8403333bee9c

[native] Introduce markdown component for chat mentions

Tags
None
Referenced Files
F697980: t3.png
Sep 28 2023, 1:25 AM
File Not Attached
F697982: t4.png
Sep 28 2023, 1:25 AM
File Not Attached
Subscribers
None

Description

[native] Introduce markdown component for chat mentions

Summary:
Solution for ENG-4560
This diff creates a new component for chat mentions which handles bolding mentions when user has access to given chat.

Depends on D8844.

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

  1. Create a community with three users.
  2. Create a private chat for two chosen users.
  3. Mention private chat in community chat (e. g. @[[256|8282:default text]]).

For users assigned to previously created private chat, the mention should be bold and render current thread name:

t4.png (1×794 px, 522 KB)

For users who are not in private chat, the mention should be rendered with plain text message style:
t3.png (1×794 px, 520 KB)

Reviewers: tomek, inka, rohan

Reviewed By: tomek, inka, rohan

Subscribers: ashoat, tomek

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

Details

Provenance
patrykAuthored on Sep 1 2023, 2:42 AM
Reviewer
tomek
Differential Revision
D8845: [native] Introduce markdown component for chat mentions
Parents
rCOMM1430543adb94: [native] Refactor markdown-link component
Branches
Unknown
Tags
Unknown