Skip to content
Snippets Groups Projects
Commit 7c564957 authored by Adrien Béraud's avatar Adrien Béraud
Browse files

account: cleanup

Change-Id: I90908509df6398937f0150fb62dc2d22355f080b
parent 04a683d8
No related branches found
No related tags found
No related merge requests found
......@@ -92,10 +92,8 @@ class Account(
fun canSearch(): Boolean = !getDetail(ConfigKey.MANAGER_URI).isNullOrEmpty()
fun isContact(conversation: Conversation): Boolean {
val contact = conversation.contact
return contact != null && isContact(contact.uri)
}
fun isContact(conversation: Conversation): Boolean =
conversation.contact?.let { isContact(it.uri) } ?: false
fun isContact(uri: Uri): Boolean = getContact(uri) != null
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment