Browse Source

bugfix: remove discoInitialized promise on teardown

JC Brand 1 tháng trước cách đây
mục cha
commit
0e65d97a90
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      src/headless/plugins/disco/index.js

+ 1 - 0
src/headless/plugins/disco/index.js

@@ -58,6 +58,7 @@ converse.plugins.add('converse-disco', {
 
         api.listen.on('beforeTearDown', async () => {
             api.promises.add('streamFeaturesAdded');
+            api.promises.add('discoInitialized');
 
             const { stream_features } = _converse.state;
             if (stream_features) {