Open GoogleCodeExporter opened 8 years ago
Thanks! We will work on that one. Can you give more details about where in the
source code is that bug? (patches welcomed)
Bests,
Dani
Original comment by danigb
on 25 Jan 2011 at 10:32
[deleted comment]
This patches sets the rosterReady flag to true. It is never changed eventhough
the session is logout. The rosterReady flag is set in
XmppRosterBoilerplate.java constructor and used in XmppRosterLogin.java. May
this patches be clear????
code patches.
rosterReady is set to "true"
XmppRosterLogic.java
public void reRequestRoster() {
if (session.getCurrentUser() != null) {
IQ iq = new IQ(IQ.Type.get, null).WithQuery("jabber:iq:roster");
session.sendIQ("roster", iq, new IQResponseHandler() {
@Override
public void onIQ(IQ iq) {
if (IQ.isSuccess(iq)) {
clearGroupAll();
final List<? extends IPacket> children = iq.getFirstChild("query").getChildren();
for (final IPacket child : children) {
final RosterItem item = RosterItem.parse(child);
storeItem(item);
}
if (!rosterReady) {
rosterReady = true;
session.setSessionState(SessionStates.rosterReady);
}
eventBus.fireEvent(new RosterRetrievedEvent(getItems()));
} else {
eventBus
.fireEvent(new RequestFailedEvent("roster request", "couldn't retrieve the roster", iq));
}
}
});
}
Original comment by jiunara...@gmail.com
on 25 Jan 2011 at 1:42
Original issue reported on code.google.com by
jiunara...@gmail.com
on 25 Jan 2011 at 10:03