transmit.js: Use people.get_mention_syntax.

This commit is contained in:
Rohitt Vashishtha 2018-10-13 00:31:49 +00:00 committed by Tim Abbott
parent 38cddf7d54
commit 11e4011d5f
2 changed files with 2 additions and 1 deletions

View File

@ -179,6 +179,7 @@ run_test('reply_message_stream', () => {
stream: 'social',
subject: 'lunch',
sender_full_name: 'Alice',
sender_id: 123,
};
const content = 'hello';

View File

@ -105,7 +105,7 @@ exports.reply_message = function (opts) {
if (message.type === 'stream') {
var stream = message.stream;
var mention = '@**' + message.sender_full_name + '**';
var mention = people.get_mention_syntax(message.sender_full_name, message.sender_id);
content = mention + ' ' + content;