Remove split of fullname. Fixes #609

This commit is contained in:
Viktor Liu 2016-03-20 01:47:51 +01:00
parent 55593245f3
commit ad036ea75f
2 changed files with 5 additions and 1 deletions

View File

@ -25,6 +25,8 @@
- #592 Add random resource for `auto_login`, add method generateResource to generate random resource [davec82]
- #598 Add option `synchronize_availability` [davec82]
- #600 Fix change xmpp status also on icon-status click [davec82]
- #616 converse-otr should depend on converse-minimize [jcbrand]
- #609 Remove split of fullname [lixmal]
## 0.10.1 (2016-02-06)

View File

@ -1241,7 +1241,9 @@
} else {
from = Strophe.getBareJidFromJid($message.attr('from'));
}
fullname = (_.isEmpty(fullname) ? from: fullname).split(' ')[0];
if (_.isEmpty(fullname)) {
fullname = from;
}
if (delayed) {
stamp = $delay.attr('stamp');
time = stamp;