Commit 4aa6b728 authored by JC Brand's avatar JC Brand

muc: wait for `restoreSession`

parent 0f63c84d
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment