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

Fetch the room information before opening the room.

parent 67cdf5da
...@@ -2,9 +2,8 @@ ...@@ -2,9 +2,8 @@
## 2.0.4 (Unreleased) ## 2.0.4 (Unreleased)
- #737: Bugfix. Translations weren't being applied. [jcbrand] - #737: Bugfix. Translations weren't being applied. [jcbrand]
- Room information as returned by the server is now stored on the room model. - Fetch room info and store it on the room model.
For context, see: http://xmpp.org/extensions/xep-0045.html#disco-roominfo For context, see: http://xmpp.org/extensions/xep-0045.html#disco-roominfo [jcbrand]
[jcbrand]
- Bugfix. Switching from bookmarks form to config form shows only the spinner. [jcbrand] - Bugfix. Switching from bookmarks form to config form shows only the spinner. [jcbrand]
- Bugfix. Other room occupants sometimes not shown when reloading the page. [jcbrand] - Bugfix. Other room occupants sometimes not shown when reloading the page. [jcbrand]
- Bugfix. Due to changes in `converse-core` the controlbox wasn't aware anymore of - Bugfix. Due to changes in `converse-core` the controlbox wasn't aware anymore of
......
This diff is collapsed.
...@@ -104,7 +104,7 @@ ...@@ -104,7 +104,7 @@
if (!_.isUndefined(model) && model.get('nick')) { if (!_.isUndefined(model) && model.get('nick')) {
this.join(this.model.get('nick')); this.join(this.model.get('nick'));
} else { } else {
this.__super__.checkForReservedNick.apply(this, arguments); return this.__super__.checkForReservedNick.apply(this, arguments);
} }
}, },
......
...@@ -662,7 +662,6 @@ ...@@ -662,7 +662,6 @@
// model is going to be destroyed afterwards. // model is going to be destroyed afterwards.
this.model.set('chat_state', converse.INACTIVE); this.model.set('chat_state', converse.INACTIVE);
this.sendChatState(); this.sendChatState();
this.model.destroy(); this.model.destroy();
} }
this.remove(); this.remove();
......
This diff is collapsed.
...@@ -122,6 +122,16 @@ ...@@ -122,6 +122,16 @@
utils.openChatRoom(converse, room, server); utils.openChatRoom(converse, room, server);
var view = converse.chatboxviews.get(room+'@'+server); var view = converse.chatboxviews.get(room+'@'+server);
// We pretend this is a new room, so no disco info is returned.
var features_stanza = $iq({
from: 'lounge@localhost',
'id': IQ_id,
'to': 'dummy@localhost/desktop',
'type': 'error'
}).c('error', {'type': 'cancel'})
.c('item-not-found', {'xmlns': "urn:ietf:params:xml:ns:xmpp-stanzas"});
converse.connection._dataRecv(utils.createRequest(features_stanza));
// The XMPP server returns the reserved nick for this user. // The XMPP server returns the reserved nick for this user.
var stanza = $iq({ var stanza = $iq({
'type': 'result', 'type': 'result',
......
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