Emit new event roomsPanelRendered

This commit is contained in:
JC Brand 2017-05-01 12:41:16 +02:00
parent b32a8c5391
commit 47ca3e64b2
2 changed files with 10 additions and 0 deletions

View File

@ -212,6 +212,15 @@ After the user has sent out a direct invitation, to a roster contact, asking the
``_converse.on('roomInvite', function (data) { ... });``
roomsPanelRendered
~~~~~~~~~~~~~~~~~~
Emitted once the "Rooms" panel in the control box has been rendered.
Used by `converse-bookmarks` and `converse-roomslist` to know when they can
render themselves in that panel.
``_converse.on('roomsPanelRendered', function (data) { ... });``
roster
~~~~~~

View File

@ -161,6 +161,7 @@
nick: Strophe.getNodeFromJid(_converse.bare_jid)
});
}
_converse.emit('roomsPanelRendered');
}
},