Explorar o código

Send presence of type 'unavailable' when logging out.

JC Brand %!s(int64=9) %!d(string=hai) anos
pai
achega
a2e465f49f
Modificáronse 1 ficheiros con 3 adicións e 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') {