浏览代码

Fix failing test.

When sending a MUC message, fullname should be the user's nick in the chat room.
JC Brand 9 年之前
父节点
当前提交
7b006f31d4
共有 1 个文件被更改,包括 1 次插入3 次删除
  1. 1 3
      src/converse-muc.js

+ 1 - 3
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,