Skip to content
Snippets Groups Projects
Commit b2676863 authored by Diego Sampaio's avatar Diego Sampaio Committed by Rodrigo Nascimento
Browse files

Fix mentions (#11211)

Regression: Sending message with a mention is not showing to sender
parent 43ded769
No related branches found
No related tags found
No related merge requests found
......@@ -39,7 +39,7 @@ export default class {
return `${ prefix }<a class="mention-link mention-link-me mention-link-all">@${ username }</a>`;
}
const mentionObj = message.mentions.find(m => m.username === username);
const mentionObj = message.mentions && message.mentions.find(m => m.username === username);
if (message.temp == null && mentionObj == null) {
return match;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment