Fixed broken link in README

This commit is contained in:
Sylvain Berfini 2025-05-12 12:00:33 +02:00
parent 7c78b021db
commit dc2b94ca4d
2 changed files with 2 additions and 14 deletions

View file

@ -26,7 +26,7 @@ Linphone is dual licensed, and is available either :
### Documentation
- Supported features and RFCs : https://linphone.org/technical-corner/linphone/features
- Supported features and RFCs : https://www.linphone.org/linphone-softphone/#linphone-fonctionnalites
- Linphone public wiki : https://wiki.linphone.org/xwiki/wiki/public/view/Linphone/

View file

@ -446,22 +446,10 @@ class ContactsManager
)
}
val sipAddress = if (sipUri.startsWith("sip:")) {
sipUri.substring("sip:".length)
} else if (sipUri.startsWith("sips:")) {
sipUri.substring("sips:".length)
} else {
sipUri
}
return if (!username.isNullOrEmpty() && (username.startsWith("+") || username.isDigitsOnly())) {
Log.d("$TAG Looking for friend with phone number [$username]")
val foundUsingPhoneNumber = coreContext.core.findFriendByPhoneNumber(username)
if (foundUsingPhoneNumber != null) {
foundUsingPhoneNumber
} else {
null
}
foundUsingPhoneNumber
} else {
null
}