aboutsummaryrefslogtreecommitdiffhomepage
path: root/Firestore/Source/API
diff options
context:
space:
mode:
authorGravatar Michael Lehenbauer <mikelehen@gmail.com>2018-01-12 15:54:42 -0800
committerGravatar GitHub <noreply@github.com>2018-01-12 15:54:42 -0800
commitda506b86bc7eedb7de7764033477252ea383a4f6 (patch)
treef40826910faef803c9c6878ac75bd381c5f4f3b7 /Firestore/Source/API
parent17f5a9ba246a6bb404b48a615216f64b1bcb180c (diff)
Fix issue @morganchen12 discovered where we weren't properly creating FIRQueryDocumentSnapshot instances. (#662)
Diffstat (limited to 'Firestore/Source/API')
-rw-r--r--Firestore/Source/API/FIRDocumentSnapshot.m8
1 files changed, 4 insertions, 4 deletions
diff --git a/Firestore/Source/API/FIRDocumentSnapshot.m b/Firestore/Source/API/FIRDocumentSnapshot.m
index 358ddac..80b60e6 100644
--- a/Firestore/Source/API/FIRDocumentSnapshot.m
+++ b/Firestore/Source/API/FIRDocumentSnapshot.m
@@ -51,10 +51,10 @@ NS_ASSUME_NONNULL_BEGIN
documentKey:(FSTDocumentKey *)documentKey
document:(nullable FSTDocument *)document
fromCache:(BOOL)fromCache {
- return [[FIRDocumentSnapshot alloc] initWithFirestore:firestore
- documentKey:documentKey
- document:document
- fromCache:fromCache];
+ return [[[self class] alloc] initWithFirestore:firestore
+ documentKey:documentKey
+ document:document
+ fromCache:fromCache];
}
@end