Double roster contacts when users going offline and online

Hello

I found a bug with roster contacts duplicating entries when users chenge their status from offline to online (Offline Users group must be invisible)

To replicate this bug:

  1. Create roster contact (ContactA) which belongs to some group

  2. Login to spark on your user (UserA) set your settings in Contacts menu to:

Show empty group - Checked

Group offline users - Unchecked

Show offline users - Checked

  1. Login with some Client to ContactA and start changing your status from offline to online few times

  2. On Spark logged to UserA now you will see that ContactA is duplicated - One is online, but there are few ContactA offline contacts in group

This bug i found in latest version from trunk

I attached my patch resolving this bug

it may be connected with BUG http://issues.igniterealtime.org/browse/SPARK-879
ContactList.java.patch.zip (494 Bytes)

Hey,

thanks for your work, i will review this patch and created a issue: SPARK-1492

I notice that issue is closed/resolved, however the issue is still occurring for me under 2.7.1 build 686.