Skip to content

Commit 0e35535

Browse files
authored
Merge pull request #214 from Simperium/object-backup-store
Object Backup Store
2 parents cb41a1f + 144f35e commit 0e35535

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

Simperium/src/main/java/com/simperium/client/Bucket.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,12 @@ public void run() {
351351
return;
352352
}
353353

354+
// Put object in backup store if not already there so that queued local deletion
355+
// will send change event and remove object from server and all other platforms.
356+
if (mBackupStore.get(object.getSimperiumKey()) == null) {
357+
mBackupStore.put(object.getSimperiumKey(), object);
358+
}
359+
354360
mChannel.queueLocalDeletion(object);
355361
}
356362

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,5 @@ def gitDescribe() {
3535
}
3636

3737
def static gitVersion() {
38-
'0.9.2'
38+
'0.9.3'
3939
}

0 commit comments

Comments
 (0)