Browse Source

Fix failing test.

When sending a MUC message, fullname should be the user's nick in the chat room.
JC Brand 9 years ago
parent
commit
7b006f31d4
1 changed files with 1 additions and 3 deletions
  1. 1 3
      src/converse-muc.js

+ 1 - 3
src/converse-muc.js

@@ -286,10 +286,8 @@
                     }).c("body").t(text).up()
                     }).c("body").t(text).up()
                     .c("x", {xmlns: "jabber:x:event"}).c("composing");
                     .c("x", {xmlns: "jabber:x:event"}).c("composing");
                     converse.connection.send(msg);
                     converse.connection.send(msg);
-
-                    var fullname = converse.xmppstatus.get('fullname');
                     this.model.messages.create({
                     this.model.messages.create({
-                        fullname: _.isEmpty(fullname)? converse.bare_jid: fullname,
+                        fullname: this.model.get('nick'),
                         sender: 'me',
                         sender: 'me',
                         time: moment().format(),
                         time: moment().format(),
                         message: text,
                         message: text,