compose_actions: Use people.get_mention_syntax in reply_with_mention.

This commit is contained in:
Rohitt Vashishtha
2018-10-13 00:03:43 +00:00
committed by Tim Abbott
parent b18f9def06
commit 38cddf7d54
2 changed files with 21 additions and 1 deletions

View File

@@ -336,7 +336,7 @@ exports.respond_to_message = function (opts) {
exports.reply_with_mention = function (opts) {
exports.respond_to_message(opts);
var message = current_msg_list.selected_message();
var mention = '@**' + message.sender_full_name + '**';
var mention = people.get_mention_syntax(message.sender_full_name, message.sender_id);
compose_ui.insert_syntax_and_focus(mention);
};