aboutsummaryrefslogtreecommitdiffhomepage
path: root/Firestore/Source/Core/FSTView.mm
diff options
context:
space:
mode:
Diffstat (limited to 'Firestore/Source/Core/FSTView.mm')
-rw-r--r--Firestore/Source/Core/FSTView.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/Firestore/Source/Core/FSTView.mm b/Firestore/Source/Core/FSTView.mm
index d6b4558..b2a39cb 100644
--- a/Firestore/Source/Core/FSTView.mm
+++ b/Firestore/Source/Core/FSTView.mm
@@ -337,7 +337,7 @@ static NSComparisonResult FSTCompareDocumentViewChangeTypes(FSTDocumentViewChang
}
- (FSTViewChange *)applyChangedOnlineState:(FSTOnlineState)onlineState {
- if (self.isCurrent && onlineState == FSTOnlineStateFailed) {
+ if (self.isCurrent && onlineState == FSTOnlineStateOffline) {
// If we're offline, set `current` to NO and then call applyChanges to refresh our syncState
// and generate an FSTViewChange as appropriate. We are guaranteed to get a new FSTTargetChange
// that sets `current` back to YES once the client is back online.