New event minimizedChatViewInitialized

This commit is contained in:
JC Brand 2019-10-22 18:33:54 +02:00
parent b6d5077d04
commit 9934fa7191

View File

@ -388,6 +388,13 @@ converse.plugins.add('converse-minimize', {
this.listenTo(this.model, 'change:fullname', this.render)
this.listenTo(this.model, 'change:jid', this.render)
this.listenTo(this.model, 'destroy', this.remove)
/**
* Triggered once a {@link _converse.MinimizedChatBoxView } has been initialized
* @event _converse#minimizedChatViewInitialized
* @type { _converse.MinimizedChatBoxView }
* @example _converse.api.listen.on('minimizedChatViewInitialized', view => { ... });
*/
_converse.api.trigger('minimizedChatViewInitialized', this);
},
render () {