Keep contacts in sync

Fixes #329
This commit is contained in:
Moez Bhatti
2019-11-24 15:30:25 -05:00
parent 25cff7e346
commit 13c8ba3e78
10 changed files with 27 additions and 75 deletions
@@ -25,7 +25,7 @@ import io.reactivex.Observable
interface SyncRepository {
sealed class SyncProgress {
class Idle : SyncProgress()
object Idle : SyncProgress()
data class Running(val max: Int, val progress: Int, val indeterminate: Boolean) : SyncProgress()
}
@@ -37,11 +37,4 @@ interface SyncRepository {
fun syncContacts()
/**
* Syncs a single contact to the Realm
*
* Return false if the contact couldn't be found
*/
fun syncContact(address: String): Boolean
}
}