This commit is contained in:
JC Brand 2017-02-13 13:59:36 +00:00
parent 85f6a75fed
commit 5f67797202
2 changed files with 3 additions and 1 deletions

View File

@ -8,6 +8,7 @@
object as first parameter. [jcbrand]
- Use lodash instead of underscore.js [jcbrand]
- #486 Honor existing mam user configuration [throwaway42]
- #749 /me will show your contact's name in the sent field [jcbrand]
- Escape user-generated input to prevent JS-injection attacks. (Thanks to SamWhited) [jcbrand]
## 2.0.5 (Unreleased)

View File

@ -322,7 +322,8 @@
if ((match) && (match[1] === 'me')) {
text = text.replace(/^\/me/, '');
template = _converse.templates.action;
username = fullname;
fullname = _converse.xmppstatus.get('fullname');
username = _.isNil(fullname)? _converse.bare_jid: fullname;
} else {
template = _converse.templates.message;
username = attrs.sender === 'me' && __('me') || fullname;