Ensure that MMS have unique keys

This commit is contained in:
Moez Bhatti
2018-01-05 00:09:45 -05:00
parent 20f83fccf9
commit 613e3096a2
5 changed files with 27 additions and 12 deletions
@@ -36,7 +36,6 @@ open class PartialSync @Inject constructor(
return Flowable.just(System.currentTimeMillis())
.skipWhile { !permissions.hasSmsAndContacts() }
.doOnNext { syncManager.performSync() }
.doOnNext { keys.refresh() }
.map { startTime -> System.currentTimeMillis() - startTime }
.map { elapsed -> TimeUnit.MILLISECONDS.toSeconds(elapsed) }
.doOnNext { seconds -> Timber.v("Completed sync in $seconds seconds") }