Bugfix. Chatboxes aren't closed when logging out.
This commit is contained in:
parent
c670893058
commit
3b38f7237c
|
@ -5,6 +5,7 @@
|
||||||
- Enable new rooms to be configured automatically, with a default config, via `rooms.open`.
|
- Enable new rooms to be configured automatically, with a default config, via `rooms.open`.
|
||||||
For details, refer to the [relevant documentation](https://conversejs.org/docs/html/developer_api.html#the-rooms-grouping) [jcbrand]
|
For details, refer to the [relevant documentation](https://conversejs.org/docs/html/developer_api.html#the-rooms-grouping) [jcbrand]
|
||||||
- Bugfix: Arrays in configuration settings were ignored. [jcbrand]
|
- Bugfix: Arrays in configuration settings were ignored. [jcbrand]
|
||||||
|
- Bugfix: Chatboxes aren't closed when logging out. [jcbrand]
|
||||||
|
|
||||||
## 2.0.1 (2016-11-07)
|
## 2.0.1 (2016-11-07)
|
||||||
- #203 New configuration setting [muc_domain](https://conversejs.org/docs/html/configuration.html#muc_domain) [jcbrand]
|
- #203 New configuration setting [muc_domain](https://conversejs.org/docs/html/configuration.html#muc_domain) [jcbrand]
|
||||||
|
|
|
@ -534,6 +534,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
this.logOut = function () {
|
this.logOut = function () {
|
||||||
|
converse.chatboxviews.closeAllChatBoxes();
|
||||||
converse.disconnection_cause = converse.LOGOUT;
|
converse.disconnection_cause = converse.LOGOUT;
|
||||||
if (typeof converse.connection !== 'undefined') {
|
if (typeof converse.connection !== 'undefined') {
|
||||||
converse.connection.disconnect();
|
converse.connection.disconnect();
|
||||||
|
@ -541,7 +542,6 @@
|
||||||
}
|
}
|
||||||
converse.clearSession();
|
converse.clearSession();
|
||||||
converse._tearDown();
|
converse._tearDown();
|
||||||
converse.chatboxviews.closeAllChatBoxes();
|
|
||||||
converse.emit('logout');
|
converse.emit('logout');
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user