exclude duplicated dialog fixed

This commit is contained in:
simon 2020-09-22 13:02:19 +03:00
parent b7a6d89b18
commit 593112561d

View file

@ -12,6 +12,7 @@ import java.util.List;
import java.util.Map; import java.util.Map;
import java.util.Map.Entry; import java.util.Map.Entry;
import gnu.trove.procedure.TObjectProcedure;
import org.apache.commons.logging.Log; import org.apache.commons.logging.Log;
import gnu.trove.iterator.TIntObjectIterator; import gnu.trove.iterator.TIntObjectIterator;
@ -289,7 +290,8 @@ public class RoutingContext {
if(excludeNotAllowed != null && !excludeNotAllowed.contains(ro.getId())) { if(excludeNotAllowed != null && !excludeNotAllowed.contains(ro.getId())) {
ts.add(ro); ts.add(ro);
} }
} else if(excludeNotAllowed != null && ro.getId() > 0){ }
if(excludeNotAllowed != null && ro.getId() > 0){
excludeNotAllowed.add(ro.getId()); excludeNotAllowed.add(ro.getId());
if(ts.excludedIds == null ){ if(ts.excludedIds == null ){
ts.excludedIds = new TLongHashSet(); ts.excludedIds = new TLongHashSet();