The benefit of Stream Management is that the roster (with presences) does not have to be reloaded after stream resumption.
But the presences are all cleared when the stream is interrupted. Is this a bug?
It happens here in Roster.java:
public void connectionTerminated() {
// Changes the presence available contacts to unavailable
setOfflinePresencesAndResetLoaded();
}
Flow
October 3, 2016, 10:58am
4
That’s a known bug in Smack 4.1 which was fixed with Only reset Roster on clean termination · igniterealtime/Smack@fc3f5ef · GitHub in the master. You could try a 4.2 beta version.
This fix is also applied in 4.1.8 and does not solve the problem mentioned and I do not see a change in 4.2. beta.
Yes, you are right. After checking again, it is not fixed in 4.1.8, but in 4.2 beta. Thank you.