Catch the client's entitycreated event and assign it to a temporary object.
Within that object, monitor the primaryPresenceChanged.
For example:
client.entitySet.event("entityCreated").bind(function(evt) {
var qcontact = evt.data;
qcontact.event("primaryPresenceChanged").bind(function(evt) {
_roster._updateRosterItem(qcontact);
});
Comments
0 comments
Please sign in to leave a comment.