Преглед изворни кода

Add check and update changelog

JC Brand пре 6 година
родитељ
комит
0b43082383
2 измењених фајлова са 2 додато и 1 уклоњено
  1. 1 0
      CHANGES.md
  2. 1 1
      src/headless/converse-core.js

+ 1 - 0
CHANGES.md

@@ -50,6 +50,7 @@
 - #1550: Legitimate carbons being blocked due to erroneous forgery check
 - #1550: Legitimate carbons being blocked due to erroneous forgery check
 - #1554: Room auto-configuration broke if the config form contained fields with type `fixed`
 - #1554: Room auto-configuration broke if the config form contained fields with type `fixed`
 - #1558: `this.get` is not a function error when `forward_messages` is set to `true`.
 - #1558: `this.get` is not a function error when `forward_messages` is set to `true`.
+- #1561: Don't call `clear` on local or session storage
 - #1572: In `fullscreen` view mode the top is cut off on iOS
 - #1572: In `fullscreen` view mode the top is cut off on iOS
 - #1575: MUC invitation autocomplete list doesn't appear
 - #1575: MUC invitation autocomplete list doesn't appear
 - #1576: Converse gets stuck with spinner when logging out with `auto_login` set to `true`
 - #1576: Converse gets stuck with spinner when logging out with `auto_login` set to `true`

+ 1 - 1
src/headless/converse-core.js

@@ -529,7 +529,7 @@ function clearSession  () {
         _converse.session.browserStorage._clear();
         _converse.session.browserStorage._clear();
         delete _converse.session;
         delete _converse.session;
     }
     }
-    if (_converse.shouldClearCache()) {
+    if (_converse.shouldClearCache() && _converse.xmppstatus) {
         _converse.xmppstatus.destroy();
         _converse.xmppstatus.destroy();
         _converse.xmppstatus.browserStorage._clear();
         _converse.xmppstatus.browserStorage._clear();
         delete _converse.xmppstatus;
         delete _converse.xmppstatus;