Explorar o código

Updates #890. Make sure to clear session data

Otherwise carbons aren't re-enabled after reconnection.
JC Brand %!s(int64=8) %!d(string=hai) anos
pai
achega
796edb03fe
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      src/converse-core.js

+ 3 - 0
src/converse-core.js

@@ -571,6 +571,9 @@
             if (!_.isUndefined(this.roster)) {
                 this.roster.browserStorage._clear();
             }
+            if (!_.isUndefined(this.session) && this.session.browserStorage) {
+                this.session.browserStorage._clear();
+            }
         };
 
         this.logOut = function () {