diff --git a/README.md b/README.md index 8a7af8b50..b81fc5fad 100644 --- a/README.md +++ b/README.md @@ -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/ diff --git a/app/src/main/java/org/linphone/contacts/ContactsManager.kt b/app/src/main/java/org/linphone/contacts/ContactsManager.kt index c15c69499..dd4005903 100644 --- a/app/src/main/java/org/linphone/contacts/ContactsManager.kt +++ b/app/src/main/java/org/linphone/contacts/ContactsManager.kt @@ -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 }