Fix failing test.

When sending a MUC message, fullname should be the user's nick in the chat room.
This commit is contained in:
JC Brand 2016-05-25 09:00:25 +00:00
parent 2473fb133a
commit 7b006f31d4

View File

@ -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,