Bugfix. Send model instance to event listeners
So that we can call `getDisplayName`
This commit is contained in:
parent
b8679063c5
commit
7e94f3c691
@ -161,7 +161,10 @@ contactRequest
|
||||
|
||||
Someone has requested to subscribe to your presence (i.e. to be your contact).
|
||||
|
||||
``_converse.api.listen.on('contactRequest', function (user_data) { ... });``
|
||||
The `Backbone.Model <http://backbonejs.org/#Model>`_ instance representing the
|
||||
roster contact is passed to the event listener.
|
||||
|
||||
``_converse.api.listen.on('contactRequest', function (contact) { ... });``
|
||||
|
||||
contactRemoved
|
||||
~~~~~~~~~~~~~~
|
||||
|
@ -600,8 +600,7 @@
|
||||
'requesting': true,
|
||||
'nickname': nickname
|
||||
};
|
||||
this.create(user_data);
|
||||
_converse.emit('contactRequest', user_data);
|
||||
_converse.emit('contactRequest', this.create(user_data));
|
||||
},
|
||||
|
||||
handleIncomingSubscription (presence) {
|
||||
|
Loading…
Reference in New Issue
Block a user