mirror of https://github.com/zulip/zulip.git
transmit.js: Use people.get_mention_syntax.
This commit is contained in:
parent
38cddf7d54
commit
11e4011d5f
|
@ -179,6 +179,7 @@ run_test('reply_message_stream', () => {
|
|||
stream: 'social',
|
||||
subject: 'lunch',
|
||||
sender_full_name: 'Alice',
|
||||
sender_id: 123,
|
||||
};
|
||||
|
||||
const content = 'hello';
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue