You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NRLOG_WARNING(@"Not saving to offline storage because max storage size has been reached.");
@@ -54,7 +55,7 @@ - (BOOL) persistDataToDisk:(NSData*) data {
54
55
NSError *error = nil;
55
56
if (data) {
56
57
if ([data writeToFile:[selfnewOfflineFilePath] options:NSDataWritingAtomic error:&error]) {
57
-
[[NSUserDefaultsstandardUserDefaults] setInteger:currentOfflineStorageSize forKey:kNRMAOfflineStorageCurrentSize]; // If we successfully save the data save the new current total size
58
+
[[NSUserDefaultsstandardUserDefaults] setInteger:currentOfflineStorageSize forKey:kNRMAOfflineStorageCurrentSizeKey]; // If we successfully save the data save the new current total size
58
59
NRLOG_VERBOSE(@"Successfully persisted failed upload data to disk for offline storage. Current offline storage: %lu", (unsignedlong)currentOfflineStorageSize);
59
60
returnYES;
60
61
}
@@ -88,10 +89,12 @@ - (BOOL) persistDataToDisk:(NSData*) data {
88
89
}
89
90
90
91
- (BOOL) clearAllOfflineFiles {
91
-
if ([[NSFileManagerdefaultManager] removeItemAtPath:[selfofflineDirectoryPath] error:NULL]) {
0 commit comments