Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-client-android
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-client-android
Commits
7c564957
Commit
7c564957
authored
2 years ago
by
Adrien Béraud
Browse files
Options
Downloads
Patches
Plain Diff
account: cleanup
Change-Id: I90908509df6398937f0150fb62dc2d22355f080b
parent
04a683d8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
jami-android/libjamiclient/src/main/kotlin/net/jami/model/Account.kt
+2
-4
2 additions, 4 deletions
...d/libjamiclient/src/main/kotlin/net/jami/model/Account.kt
with
2 additions
and
4 deletions
jami-android/libjamiclient/src/main/kotlin/net/jami/model/Account.kt
+
2
−
4
View file @
7c564957
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment