The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/app/mentions/client/client.js

22 lines
566 B

import { MentionsParser } from '../lib/MentionsParser';
import './mentionLink.css';
export let instance = new MentionsParser({
me: () => undefined,
pattern: () => undefined,
useRealName: () => undefined,
});
export let renderMentions = (message) => message;
export const createMentionsMessageRenderer = ({ me, pattern, useRealName }) => {
instance = new MentionsParser({
me: () => me,
pattern: () => pattern,
useRealName: () => useRealName,
});
renderMentions = (message) => instance.parse(message);
return (message) => instance.parse(message);
};