@@ -75,14 +75,14 @@ @implementation ApptentiveConversationManager
75
75
76
76
@synthesize activeConversation = _activeConversation;
77
77
78
- - (instancetype )initWithStoragePath : (NSString *)storagePath operationQueue : (ApptentiveDispatchQueue *)operationQueue client : (ApptentiveClient *)client parentManagedObjectContext : (NSManagedObjectContext *)parentManagedObjectContext {
78
+ - (instancetype )initWithStoragePath : (NSString *)storagePath operationQueue : (ApptentiveDispatchQueue *)operationQueue client : (ApptentiveClient *)client managedObjectContext : (NSManagedObjectContext *)managedObjectContext {
79
79
self = [super init ];
80
80
81
81
if (self) {
82
82
_storagePath = storagePath;
83
83
_operationQueue = operationQueue;
84
84
_client = client;
85
- _parentManagedObjectContext = parentManagedObjectContext ;
85
+ _managedObjectContext = managedObjectContext ;
86
86
}
87
87
88
88
return self;
@@ -305,7 +305,7 @@ - (void)endActiveConversation {
305
305
306
306
ApptentiveLogoutPayload *payload = [[ApptentiveLogoutPayload alloc ] init ];
307
307
308
- [ApptentiveSerialRequest enqueuePayload: payload forConversation: conversation usingAuthToken: conversation.token inContext: self .parentManagedObjectContext ];
308
+ [ApptentiveSerialRequest enqueuePayload: payload forConversation: conversation usingAuthToken: conversation.token inContext: self .managedObjectContext ];
309
309
310
310
[self .delegate processQueuedRecords ];
311
311
@@ -652,7 +652,7 @@ - (void)conversationAppReleaseOrSDKDidChange:(ApptentiveConversation *)conversat
652
652
653
653
ApptentiveSDKAppReleasePayload *payload = [[ApptentiveSDKAppReleasePayload alloc ] initWithConversation: conversation];
654
654
655
- [ApptentiveSerialRequest enqueuePayload: payload forConversation: conversation usingAuthToken: conversation.token inContext: self .parentManagedObjectContext ];
655
+ [ApptentiveSerialRequest enqueuePayload: payload forConversation: conversation usingAuthToken: conversation.token inContext: self .managedObjectContext ];
656
656
657
657
[self .delegate processQueuedRecords ];
658
658
@@ -666,7 +666,7 @@ - (void)conversation:(ApptentiveConversation *)conversation personDidChange:(NSD
666
666
667
667
ApptentivePersonPayload *payload = [[ApptentivePersonPayload alloc ] initWithPersonDiffs: diffs];
668
668
669
- [ApptentiveSerialRequest enqueuePayload: payload forConversation: conversation usingAuthToken: conversation.token inContext: self .parentManagedObjectContext ];
669
+ [ApptentiveSerialRequest enqueuePayload: payload forConversation: conversation usingAuthToken: conversation.token inContext: self .managedObjectContext ];
670
670
671
671
[self saveConversation: conversation];
672
672
@@ -678,7 +678,7 @@ - (void)conversation:(ApptentiveConversation *)conversation deviceDidChange:(NSD
678
678
679
679
ApptentiveDevicePayload *payload = [[ApptentiveDevicePayload alloc ] initWithDeviceDiffs: diffs];
680
680
681
- [ApptentiveSerialRequest enqueuePayload: payload forConversation: conversation usingAuthToken: conversation.token inContext: self .parentManagedObjectContext ];
681
+ [ApptentiveSerialRequest enqueuePayload: payload forConversation: conversation usingAuthToken: conversation.token inContext: self .managedObjectContext ];
682
682
683
683
[self saveConversation: conversation];
684
684
0 commit comments