mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-04-23 19:48:30 +00:00
Removed useless address cleaning, already done by SDK
This commit is contained in:
parent
dc23df8b3a
commit
7fec6cbb75
1 changed files with 5 additions and 7 deletions
|
|
@ -195,13 +195,11 @@ class ContactsManager @UiThread constructor() {
|
||||||
|
|
||||||
@WorkerThread
|
@WorkerThread
|
||||||
fun findContactByAddress(address: Address): Friend? {
|
fun findContactByAddress(address: Address): Friend? {
|
||||||
val clonedAddress = address.clone()
|
val sipUri = address.asStringUriOnly()
|
||||||
clonedAddress.clean()
|
|
||||||
val sipUri = clonedAddress.asStringUriOnly()
|
|
||||||
|
|
||||||
Log.d("$TAG Looking for friend with SIP URI [$sipUri]")
|
Log.d("$TAG Looking for friend with SIP URI [$sipUri]")
|
||||||
val username = clonedAddress.username
|
|
||||||
val found = coreContext.core.findFriend(clonedAddress)
|
val username = address.username
|
||||||
|
val found = coreContext.core.findFriend(address)
|
||||||
return if (found != null) {
|
return if (found != null) {
|
||||||
Log.d("$TAG Friend [${found.name}] was found using SIP URI [$sipUri]")
|
Log.d("$TAG Friend [${found.name}] was found using SIP URI [$sipUri]")
|
||||||
found
|
found
|
||||||
|
|
@ -354,7 +352,7 @@ class ContactsManager @UiThread constructor() {
|
||||||
@WorkerThread
|
@WorkerThread
|
||||||
fun findNativeContact(address: String, searchAsPhoneNumber: Boolean, number: String = ""): Friend? {
|
fun findNativeContact(address: String, searchAsPhoneNumber: Boolean, number: String = ""): Friend? {
|
||||||
if (nativeContactsLoaded) {
|
if (nativeContactsLoaded) {
|
||||||
Log.i(
|
Log.d(
|
||||||
"$TAG Native contacts already loaded, no need to search further, no native contact matches address [$address]"
|
"$TAG Native contacts already loaded, no need to search further, no native contact matches address [$address]"
|
||||||
)
|
)
|
||||||
return null
|
return null
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue