Ver código fonte

Updates #890. Make sure to clear session data

Otherwise carbons aren't re-enabled after reconnection.
JC Brand 8 anos atrás
pai
commit
796edb03fe
1 arquivos alterados com 3 adições e 0 exclusões
  1. 3 0
      src/converse-core.js

+ 3 - 0
src/converse-core.js

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