Jelajahi Sumber

bugfix: remove discoInitialized promise on teardown

JC Brand 1 bulan lalu
induk
melakukan
0e65d97a90
1 mengubah file dengan 1 tambahan dan 0 penghapusan
  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) {