Ver código fonte

Bugfix. JIDs not shown in chatrooms. fixes #282

JC Brand 10 anos atrás
pai
commit
e246335b03
2 arquivos alterados com 2 adições e 2 exclusões
  1. 1 1
      converse.js
  2. 1 1
      docs/CHANGES.rst

+ 1 - 1
converse.js

@@ -1077,7 +1077,7 @@
                     msg_time = moment(msg_dict.time) || moment,
                     text = msg_dict.message,
                     match = text.match(/^\/(.*?)(?: (.*))?$/),
-                    fullname = this.model.get('fullname'), // XXX Perhaps always use model's?
+                    fullname = this.model.get('fullname') || msg_dict.fullname,
                     extra_classes = msg_dict.delayed && 'delayed' || '',
                     template, username;
 

+ 1 - 1
docs/CHANGES.rst

@@ -4,7 +4,7 @@ Changelog
 0.8.4 (Unreleased)
 ------------------
 
-* #234 Cannot send/receive messages when contact JIDs have mixed case. [jcbrand]
+* #282 JIDs or nicknames not shown in chat rooms. [jcbrand]
 
 0.8.4 (2014-11-15)
 ------------------