-
Notifications
You must be signed in to change notification settings - Fork 441
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(messagesStore) - Mentions in forwarded messages #10640
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -1306,7 +1306,8 @@ const actions = { | |||
for (const key in message.messageParameters) { | |||
if (key.startsWith('mention')) { | |||
const mention = message.messageParameters[key] | |||
message.message = message.message.replace(`{${key}}`, `@${mention.name}`) | |||
const mentionString = key.includes('mention-call') ? `**${mention.name}**` : `@"${mention.id}"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure it causes issues somewhere, but usually we only quote when a space or slash is contained in the id
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It also works for ids that do not contain spaces of slashes, maybe a specific use case I am not aware of?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe it's only on NcRichContenteditable
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be safe to copypaste that method with reference to the upstream component
…ntion to bold display name. Signed-off-by: DorraJaouad <dorra.jaoued7@gmail.com>
Signed-off-by: DorraJaouad <dorra.jaoued7@gmail.com>
c0a693f
to
edc7878
Compare
Backport to 27, now that we know it's only 2 lines of production code? |
☑️ Resolves
🖌️ UI Checklist
🖼️ Screenshots / Screencasts
🚧 Tasks
🏁 Checklist