Explorar o código

No need to explicitly call `refreshFeatures`

`initializeDisco` already gets called upon reconnection which
accomplishes this.
JC Brand %!s(int64=6) %!d(string=hai) anos
pai
achega
a1c33d2140
Modificáronse 1 ficheiros con 1 adicións e 3 borrados
  1. 1 3
      src/headless/converse-muc.js

+ 1 - 3
src/headless/converse-muc.js

@@ -264,13 +264,11 @@ converse.plugins.add('converse-muc', {
                 }
             },
 
-            async onReconnection () {
+            onReconnection () {
                 this.save('connection_status', converse.ROOMSTATUS.DISCONNECTED);
                 this.clearMessages();
                 this.clearOccupants();
                 this.registerHandlers();
-                // Make sure we refetch features from the XMPP server
-                await _converse.api.disco.refreshFeatures(this.get('jid'));
                 this.announceReconnection();
                 this.enterRoom();
             },