Closed kaakaa closed 2 months ago
Hello @kaakaa,
Thanks for your pull request! A Core Committer will review your pull request soon. For code contributions, you can learn more about the review process here.
Newest code from cwarnermm has been published to preview environment for Git SHA 56458ab3560922b508c7d79a735c5d2f260394aa
Newest code from cwarnermm has been published to preview environment for Git SHA b8dcfd65ed4a93ad12ce92b8c4a2e721cf58a8e8
Summary
When replacing ~channel mention with a link by
PostUtils.formatText
, just specifyingchannelNamesMap
as args didn't get a correct result, and it was required to specifyteam
arg at the same time. The document doesn't mention this, so it should be added.Ticket Link
N/A
Additional Context
Entire code
msg1
msg2
msg3
Without
team
, replacing token isn't seemed to be fired.https://github.com/mattermost/mattermost/blob/f111db5fe85e8320fbc4b88b75cd423e181a7600/webapp/channels/src/utils/text_formatting.tsx#L546