Page MenuHomePhabricator

[keyserver] Render raw chat mention in the notification text
ClosedPublic

Authored by patryk on Sep 15 2023, 10:15 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Dec 21, 1:24 PM
Unknown Object (File)
Sat, Dec 21, 1:24 PM
Unknown Object (File)
Sat, Dec 21, 1:24 PM
Unknown Object (File)
Sat, Dec 21, 1:20 PM
Unknown Object (File)
Tue, Nov 26, 8:23 PM
Unknown Object (File)
Tue, Nov 26, 5:32 PM
Unknown Object (File)
Nov 22 2024, 10:06 PM
Unknown Object (File)
Nov 21 2024, 6:39 AM
Subscribers

Details

Summary

Solution for ENG-4562.

This diff enables rendering raw chat mentions in notification text.

Depends on D9005.

Test Plan

Follow the test plan from D9007.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

patryk held this revision as a draft.

To render raw chat mentions in notification text, text-message-spec.js required changes to both messageTitle and notificationTexts. In the first case, markdownRules are passed as a parameter, and in previous diffs, I've added chatMentionCandidates to be used wherever we obtain markdownRules, so chat mentions will be rendered in the parser function. The second case is easier since we operate on a string; the string replace method is used to render chat mentions.

The diff title here should probably include the word "notification" somewhere :)

patryk retitled this revision from [keyserver] Render raw chat mention to [keyserver] Render raw chat mention in the notification text.Sep 21 2023, 2:06 AM
This revision is now accepted and ready to land.Sep 22 2023, 7:49 AM