forked from upstream-mirrors/quik
Guard against duplicate phone numbers
This commit is contained in:
@@ -162,7 +162,7 @@ class SyncRepositoryImpl @Inject constructor(
|
|||||||
|
|
||||||
// Sync recipients
|
// Sync recipients
|
||||||
recipientCursor?.use {
|
recipientCursor?.use {
|
||||||
val contacts = realm.copyToRealm(getContacts())
|
val contacts = realm.copyToRealmOrUpdate(getContacts())
|
||||||
val recipients = recipientCursor.map { cursor ->
|
val recipients = recipientCursor.map { cursor ->
|
||||||
progress++
|
progress++
|
||||||
syncProgress.onNext(SyncRepository.SyncProgress.Running(max, progress, false))
|
syncProgress.onNext(SyncRepository.SyncProgress.Running(max, progress, false))
|
||||||
|
|||||||
Reference in New Issue
Block a user