Explorar el Código

Send presence of type 'unavailable' when logging out.

JC Brand hace 9 años
padre
commit
a2e465f49f
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      src/converse-core.js

+ 3 - 0
src/converse-core.js

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