File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
firebase-firestore/src/main/java/com/google/firebase/firestore/remote Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 31
31
import com .google .firebase .firestore .remote .WatchChange .DocumentChange ;
32
32
import com .google .firebase .firestore .remote .WatchChange .ExistenceFilterWatchChange ;
33
33
import com .google .firebase .firestore .remote .WatchChange .WatchTargetChange ;
34
+ import java .util .ArrayList ;
34
35
import java .util .Collection ;
35
36
import java .util .Collections ;
36
37
import java .util .HashMap ;
@@ -162,7 +163,13 @@ private Collection<Integer> getTargetIds(WatchTargetChange targetChange) {
162
163
if (!targetIds .isEmpty ()) {
163
164
return targetIds ;
164
165
} else {
165
- return targetStates .keySet ();
166
+ List <Integer > activeIds = new ArrayList <>();
167
+ for (Integer id : targetStates .keySet ()) {
168
+ if (isActiveTarget (id )) {
169
+ activeIds .add (id );
170
+ }
171
+ }
172
+ return activeIds ;
166
173
}
167
174
}
168
175
You can’t perform that action at this time.
0 commit comments