Pārlūkot izejas kodu

Send presence of type 'unavailable' when logging out.

JC Brand 9 gadi atpakaļ
vecāks
revīzija
a2e465f49f
1 mainītis faili ar 3 papildinājumiem un 0 dzēšanām
  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') {