muc: wait for restoreSession

This commit is contained in:
JC Brand 2019-12-11 16:20:04 +01:00
parent 0f63c84d5b
commit 4aa6b728cf

View File

@ -384,7 +384,7 @@ converse.plugins.add('converse-muc', {
this.setVCard();
this.set('box_id', `box-${btoa(this.get('jid'))}`);
this.restoreSession();
await this.restoreSession();
this.initFeatures(); // sendChatState depends on this.features
this.on('change:chat_state', this.sendChatState, this);
this.session.on('change:connection_status', this.onConnectionStatusChanged, this);