فهرست منبع

Fixes #1767: Remove JID so that credentials_url is called...

when the user logs out and then in again
JC Brand 5 سال پیش
والد
کامیت
ef1f16c186
2فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  1. 1 0
      CHANGES.md
  2. 1 0
      src/headless/converse-core.js

+ 1 - 0
CHANGES.md

@@ -28,6 +28,7 @@
 - #1640: Add the ability to resize the occupants sidebar in MUCs
 - #1666: Allow scrolling of the OMEMO fingerprints list
 - #1691: Fix `collection.chatbox is undefined` errors
+- #1767: `credentials_url` is not called when logging out and then in again
 - #1772: `_converse.api.contact.add(jid, nick)` fails, says not a function
 - #1792: Fix: modals don't have scrollbars
 - #1796: Don't show "back" arrow navigation (on mobile) in the chat header when in `singleton` mode

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

@@ -1411,6 +1411,7 @@ _converse.api = {
             const complete = () => {
                 // Recreate all the promises
                 Object.keys(_converse.promises).forEach(replacePromise);
+                delete _converse.jid
                 /**
                  * Triggered once the user has logged out.
                  * @event _converse#logout