Commit ca4b509d authored by JC Brand's avatar JC Brand

Log MUC connection status

parent 53621567
...@@ -292,7 +292,12 @@ converse.plugins.add('converse-muc', { ...@@ -292,7 +292,12 @@ converse.plugins.add('converse-muc', {
}, },
async enterRoom () { async enterRoom () {
if (this.get('connection_status') !== converse.ROOMSTATUS.ENTERED) { const conn_status = this.get('connection_status');
_converse.log(
`${this.get('jid')} initialized with connection_status ${conn_status}`,
Strophe.LogLevel.DEBUG
);
if (conn_status !== converse.ROOMSTATUS.ENTERED) {
// We're not restoring a room from cache, so let's clear // We're not restoring a room from cache, so let's clear
// the cache (which might be stale). // the cache (which might be stale).
this.clearMessages(); this.clearMessages();
......
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