File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
firebase-firestore/src/main/java/com/google/firebase/firestore/core Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -189,11 +189,12 @@ public <D extends MaybeDocument> DocumentChanges computeDocChanges(
189
189
if (!shouldWaitForSyncedDocument (oldDoc , newDoc )) {
190
190
changeSet .addChange (DocumentViewChange .create (Type .MODIFIED , newDoc ));
191
191
changeApplied = true ;
192
- }
193
- if (lastDocInLimit != null && query .comparator ().compare (newDoc , lastDocInLimit ) > 0 ) {
194
- // This doc moved from inside the limit to after the limit. That means there may be some
195
- // doc in the local cache that's actually less than this one.
196
- needsRefill = true ;
192
+
193
+ if (lastDocInLimit != null && query .comparator ().compare (newDoc , lastDocInLimit ) > 0 ) {
194
+ // This doc moved from inside the limit to after the limit. That means there may be
195
+ // some doc in the local cache that's actually less than this one.
196
+ needsRefill = true ;
197
+ }
197
198
}
198
199
} else if (oldDocHadPendingMutations != newDocHasPendingMutations ) {
199
200
changeSet .addChange (DocumentViewChange .create (Type .METADATA , newDoc ));
You can’t perform that action at this time.
0 commit comments