-
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
RFC: Mentions in forwarded messages #10631
Comments
if (key.includes('mention-call')) {
message.message = message.message.replace(`{${key}}`, `@${mention.name}`)
} else {
message.message = message.message.replace(`{${key}}`, `@"${mention.id}"`)
} The double quotes " could solve mentions with |
yes, that is actually the plan and okay. Can be an issue thou if e.g. the room name starts with a user ID or the word "All", because then |
Or we can avoid using @, just posting the Conversation name, maybe with bold markdown wrapping? |
That might not be understood as a mention in the context. maybe also wrap it with double quotes ? |
Well the
That still renders mentions. We need to use it when the mention id conttains a space or slash. but for |
Note: as it's a bug in 27 and below, do we consider backporting it? Requires manual backport, as logic was moved to store with feature PR |
It was a bug since such a long time and no one cared, so no backporting :) |
ATM we handle mentions by names here:
spreed/src/store/messagesStore.js
Line 1266 in 77a4405
Depending on correlation id/name it will be rendered in different conversation if:
name === id
name.split(' ').includes(id)
.Notification won't be triggered for this person though (or something prevents reproducing it)
When developing, all mention options should be considered:
See screenshot attached
Originally posted by @Antreesy in #10603 (comment)
The text was updated successfully, but these errors were encountered: