Commit d2cf29bc authored by JC Brand's avatar JC Brand

muc: One more place to fetch messages

When restoring an already entered room from cache.
Otherwise we end up with an empty history.
parent 1c116b03
......@@ -416,7 +416,8 @@ converse.plugins.add('converse-muc', {
this.join();
} else if (!(await this.rejoinIfNecessary())) {
// We've restored the room from cache and we're still joined.
this.features.fetch();
await new Promise(resolve => this.features.fetch({'success': resolve, 'error': resolve}));
await this.fetchMessages();
}
},
......
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