From 7b006f31d4d58493cec84c91b8cd4529fcb0e6ea Mon Sep 17 00:00:00 2001 From: JC Brand Date: Wed, 25 May 2016 09:00:25 +0000 Subject: [PATCH] Fix failing test. When sending a MUC message, fullname should be the user's nick in the chat room. --- src/converse-muc.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/converse-muc.js b/src/converse-muc.js index 883554554..9e8b4e829 100755 --- a/src/converse-muc.js +++ b/src/converse-muc.js @@ -286,10 +286,8 @@ }).c("body").t(text).up() .c("x", {xmlns: "jabber:x:event"}).c("composing"); converse.connection.send(msg); - - var fullname = converse.xmppstatus.get('fullname'); this.model.messages.create({ - fullname: _.isEmpty(fullname)? converse.bare_jid: fullname, + fullname: this.model.get('nick'), sender: 'me', time: moment().format(), message: text,