Commit 7b006f31 authored by JC Brand's avatar JC Brand

Fix failing test.

When sending a MUC message, fullname should be the user's nick in the chat room.
parent 2473fb13
......@@ -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,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment