Fix failing test.
When sending a MUC message, fullname should be the user's nick in the chat room.
This commit is contained in:
parent
2473fb133a
commit
7b006f31d4
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user