Fixes #749
This commit is contained in:
parent
85f6a75fed
commit
5f67797202
|
@ -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)
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user