Send presence of type 'unavailable' when logging out.

This commit is contained in:
JC Brand 2016-05-23 09:48:51 +00:00
parent e0c6626c6f
commit a2e465f49f

View File

@ -550,6 +550,9 @@
};
this.logOut = function () {
if (converse.xmppstatus) {
converse.xmppstatus.sendPresence('unavailable');
}
converse.chatboxviews.closeAllChatBoxes();
converse.clearSession();
if (typeof converse.connection !== 'undefined') {