Use linphone_core_find_friend_by_phone_number
This commit is contained in:
parent
adffb08cd0
commit
704df9d583
1 changed files with 2 additions and 3 deletions
|
@ -200,9 +200,8 @@ class ContactsManager(private val context: Context) {
|
||||||
|
|
||||||
@Synchronized
|
@Synchronized
|
||||||
fun findContactByPhoneNumber(number: String): Contact? {
|
fun findContactByPhoneNumber(number: String): Contact? {
|
||||||
return contacts.find { contact ->
|
val friend: Friend? = coreContext.core.findFriendByPhoneNumber(number)
|
||||||
contact.phoneNumbers.contains(number)
|
return friend?.userData as? Contact
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Synchronized
|
@Synchronized
|
||||||
|
|
Loading…
Reference in a new issue