mirror of
https://github.com/quik-sms/quik.git
synced 2026-11-17 11:38:51 +01:00
Allow selection of any of contact's phone numbers
This commit is contained in:
@@ -44,11 +44,11 @@ open class ContactSync @Inject constructor(
|
||||
.groupBy { contact -> contact.lookupKey }
|
||||
.flatMap { group -> group.toList().toFlowable() }
|
||||
.map { contacts ->
|
||||
val numbers = contacts.map { it.numbers }.flatten()
|
||||
val contact = contacts.first()
|
||||
contact.numbers.clear()
|
||||
contact.numbers.addAll(numbers)
|
||||
contact
|
||||
val allNumbers = contacts.map { it.numbers }.flatten()
|
||||
contacts.first().apply {
|
||||
numbers.clear()
|
||||
numbers.addAll(allNumbers)
|
||||
}
|
||||
}
|
||||
.toList().toFlowable()
|
||||
.doOnNext { contacts ->
|
||||
|
||||
Reference in New Issue
Block a user