From 684b73ca3b1e7c72f21f6dff23bfe46981ba472a Mon Sep 17 00:00:00 2001 From: Devaansh Bhandari <107868772+brf153@users.noreply.github.com> Date: Wed, 8 Nov 2023 19:58:03 +0530 Subject: [PATCH] fix(message-parser): Added ChannelMention in the markup (#1215) Signed-off-by: brf153 <153hsb@gmail.com> Co-authored-by: Guilherme Gazzo Co-authored-by: Gabriel Casals <83978645+casalsgh@users.noreply.github.com> --- .changeset/cyan-pots-care.md | 5 +++++ packages/message-parser/src/definitions.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/cyan-pots-care.md diff --git a/.changeset/cyan-pots-care.md b/.changeset/cyan-pots-care.md new file mode 100644 index 0000000000..3120ee4a2c --- /dev/null +++ b/.changeset/cyan-pots-care.md @@ -0,0 +1,5 @@ +--- +"@rocket.chat/message-parser": patch +--- + +Added ChannelMention in the markup inside message-parser diff --git a/packages/message-parser/src/definitions.ts b/packages/message-parser/src/definitions.ts index 1c4d154d48..953691ec9f 100644 --- a/packages/message-parser/src/definitions.ts +++ b/packages/message-parser/src/definitions.ts @@ -83,7 +83,7 @@ export type Quote = { value: Paragraph[]; }; -export type Markup = Italic | Strike | Bold | Plain; +export type Markup = Italic | Strike | Bold | Plain | ChannelMention; export type MarkupExcluding = Exclude; export type Bold = {