Send presence of type 'unavailable' when logging out.
This commit is contained in:
parent
e0c6626c6f
commit
a2e465f49f
|
@ -550,6 +550,9 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
this.logOut = function () {
|
this.logOut = function () {
|
||||||
|
if (converse.xmppstatus) {
|
||||||
|
converse.xmppstatus.sendPresence('unavailable');
|
||||||
|
}
|
||||||
converse.chatboxviews.closeAllChatBoxes();
|
converse.chatboxviews.closeAllChatBoxes();
|
||||||
converse.clearSession();
|
converse.clearSession();
|
||||||
if (typeof converse.connection !== 'undefined') {
|
if (typeof converse.connection !== 'undefined') {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user