No need to explicitly call refreshFeatures

`initializeDisco` already gets called upon reconnection which
accomplishes this.
This commit is contained in:
JC Brand 2019-05-22 19:30:22 +02:00
parent 9167128d8e
commit a1c33d2140

View File

@ -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();
},