mirror of
https://github.com/quik-sms/quik.git
synced 2026-11-18 20:08:53 +01:00
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