mirror of
https://github.com/zulip/zulip.git
synced 2026-07-18 21:04:19 +08:00
Autocomplete @notifications to your bolded full name.
This is a stopgap to handle e-mail addresses like me@foo.com. (imported from commit 804b477214d45f46373b2138d5ff9036644c87da)
This commit is contained in:
parent
53f0b00785
commit
0cbe53b9c7
@ -202,7 +202,7 @@ exports.initialize = function () {
|
||||
},
|
||||
sorter: typeahead_helper.sort_textbox_typeahead,
|
||||
updater: function (item) {
|
||||
return this.query.replace(/@\S+$/, "") + "@" + typeahead_helper.private_message_mapped[item].email.split("@")[0];
|
||||
return this.query.replace(/@\S+$/, "") + "@**" + typeahead_helper.private_message_mapped[item].full_name + "**";
|
||||
},
|
||||
stopAdvance: true // Do not advance to the next field on a tab or enter
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user