Browse Source

Recreate promises upon logout.

JC Brand 7 năm trước cách đây
mục cha
commit
33cfe07331
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      src/converse-core.js

+ 3 - 0
src/converse-core.js

@@ -654,6 +654,9 @@
             } else {
                 _converse._tearDown();
             }
+            // Recreate all the promises
+            _.each(_.keys(_converse.promises), addPromise);
+
             _converse.emit('logout');
         };