소스 검색

No need to explicitly call `refreshFeatures`

`initializeDisco` already gets called upon reconnection which
accomplishes this.
JC Brand 6 년 전
부모
커밋
a1c33d2140
1개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  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();
             },