I found that the number of contacts in the roster is not correct. I implement the listReceived(SessionListEvent event) function of the listener and found that the event has 16 contacts, but sometimes the yahoo session roster has only 1 or 2 or even zero contacts. I added codes to add contacts (from the contacts set in the event) to the roster and after adding, the size of the roaster does not change. Is there any constraint to add contact to the yahoo session roster?
Stephen
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The roster should be updated by the Session directly. You may have found a bug. They roster size may not be correct when your code's listReceived method is called, but it should be updated by that same thread before handling the next yahoo incoming message.
Adding a contact to the Roster (using the add() method will send a request to Yahoo to add the "new contact" to your contact list.
I'll take a look.
Neil
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I got same problem when get contacts in roster. It return not correct with my contact list. But it's always correct with listReceived(SessionListEvent event) function.
Hope you fix it soon
Br,
Ducls
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I found that the number of contacts in the roster is not correct. I implement the listReceived(SessionListEvent event) function of the listener and found that the event has 16 contacts, but sometimes the yahoo session roster has only 1 or 2 or even zero contacts. I added codes to add contacts (from the contacts set in the event) to the roster and after adding, the size of the roaster does not change. Is there any constraint to add contact to the yahoo session roster?
Stephen
Sorry I haven't gotten back to you.
The roster should be updated by the Session directly. You may have found a bug. They roster size may not be correct when your code's listReceived method is called, but it should be updated by that same thread before handling the next yahoo incoming message.
Adding a contact to the Roster (using the add() method will send a request to Yahoo to add the "new contact" to your contact list.
I'll take a look.
Neil
Hi,
I got same problem when get contacts in roster. It return not correct with my contact list. But it's always correct with listReceived(SessionListEvent event) function.
Hope you fix it soon
Br,
Ducls
Hi Neil,
Any update on this issue?
Stephen
Sorry. I am falling behind. I'll take a look at this tonight.