`converse.rooms.open` ignored the `muc_nickname_from_jid` setting.
This commit is contained in:
JC Brand 2016-11-24 09:25:06 +01:00
parent 182dc55f11
commit 1b434dbe81
2 changed files with 2 additions and 1 deletions

View File

@ -16,6 +16,7 @@
Instead, `converse.initialize` returns a promise which will resolve once
initialization is complete. [jcbrand]
- New event ['reconnecting'](https://conversejs.org/docs/html/development.html#reconnecting) [jcbrand]
- #723, #734: Bugfix. `converse.rooms.open` ignored the `muc_nickname_from_jid` setting. [jcbrand]
## 2.0.1 (2016-11-07)
- #203 New configuration setting [muc_domain](https://conversejs.org/docs/html/configuration.html#muc_domain) [jcbrand]

View File

@ -1831,7 +1831,7 @@
attrs = {};
}
var fetcher = converse.chatboxviews.showChat.bind(converse.chatboxviews);
if (!attrs.nick) {
if (!attrs.nick && converse.muc_nickname_from_jid) {
attrs.nick = Strophe.getNodeFromJid(converse.bare_jid);
}
if (typeof jids === "undefined") {