void refresh(String filter,Set<Identity> selectedParticipants){
  Set<Identity> filteredIdentities=filter(filter);
  for (  Identity selectedParticipant : selectedParticipants) {
    filteredIdentities.remove(selectedParticipant);
  }
  mParticipants.clear();
  mParticipants.addAll(filteredIdentities);
  Collections.sort(mParticipants,new IdentityDisplayNameComparator());
  notifyDataSetChanged();
  if (mShowConversations) {
    queryConversations(selectedParticipants);
  }
}

void refresh ( String filter , Set < Identity > selectedParticipants ) { Set < Identity > filteredIdentities = filter ( filter ) ; for ( Identity selectedParticipant : selectedParticipants ) { filteredIdentities . remove ( selectedParticipant ) ; } mParticipants . clear ( ) ; mParticipants . addAll ( filteredIdentities ) ; Collections . sort ( mParticipants , new IdentityDisplayNameComparator ( ) ) ; notifyDataSetChanged ( ) ; if ( mShowConversations ) { queryConversations ( selectedParticipants ) ; } }
refreshes this adapter by filtering conversations to return only those conversations with the given set of selected participants .
