Skip to content
Snippets Groups Projects
Commit 658d892c authored by ubermanu's avatar ubermanu
Browse files

add debug to trace activity

parent 4b891ace
No related branches found
No related tags found
2 merge requests!115161 new converse rai,!113History, Reply to messages and RAI
......@@ -88,7 +88,7 @@ converse.plugins.add('converse-rai', {
},
},
initialize() {
const { Strophe, _, $pres, u, sizzle } = converse.env;
const { Strophe, _, $pres, u, sizzle, log } = converse.env;
const _converse = this._converse;
const { api } = _converse;
......@@ -141,6 +141,7 @@ converse.plugins.add('converse-rai', {
if (rai) {
rai.querySelectorAll('activity').forEach(activity => {
const jid = activity.textContent;
log.debug(`Received activity for the room: ${jid}`);
api.trigger('chatRoomHasActivity', jid);
});
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment