cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
406
Views
0
Helpful
1
Replies

QuickContact subscribe problem

jmennear
Cisco Employee
Cisco Employee

Hi,

I am using QuickContact to create a roster of users for someone to chat with.

I find that if the users are already logged into Jabber when I subscribe to them that their presence will be captured correctly in the "primaryPresenceChanged" event.That person can change their status at will and my application will get notified.

However, if that user is not already logged in, then the "primaryPresenceChanged" event will never, ever get fired.

Is there something I can do so that when the user does log in that I can have an event fire that will allow me to start getting their presence updates?

-john

1 Reply 1

tinghche
Level 5
Level 5

Hi John,

This is what I did

I catch client's entitycreated event and assign it to a temp obj. Within that obj, I monitor the primaryPresenceChanged without problem.

client.entitySet.event("entityCreated").bind(function(evt) {

var qcontact = evt.data;

qcontact.event("primaryPresenceChanged").bind(function(evt) {

  _roster._updateRosterItem(qcontact);

});

Regards,

Howard