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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-client-android
Commits
39ba3c02
Commit
39ba3c02
authored
2 years ago
by
Adrien Béraud
Browse files
Options
Downloads
Patches
Plain Diff
account: don't sort empty conversation list
Change-Id: Ie3b898b9efe329ab4b7cbab6eb2988c83bdcbae8
parent
f55a70a7
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
ring-android/libjamiclient/src/main/kotlin/net/jami/model/Account.kt
+5
-3
5 additions, 3 deletions
...d/libjamiclient/src/main/kotlin/net/jami/model/Account.kt
with
5 additions
and
3 deletions
ring-android/libjamiclient/src/main/kotlin/net/jami/model/Account.kt
+
5
−
3
View file @
39ba3c02
...
@@ -741,9 +741,11 @@ class Account(
...
@@ -741,9 +741,11 @@ class Account(
private
fun
getSortedConversations
():
List
<
Conversation
>
{
private
fun
getSortedConversations
():
List
<
Conversation
>
{
if
(
conversationsChanged
)
{
if
(
conversationsChanged
)
{
sortedConversations
.
clear
()
sortedConversations
.
clear
()
if
(
conversations
.
isNotEmpty
())
{
sortedConversations
.
addAll
(
conversations
.
values
)
sortedConversations
.
addAll
(
conversations
.
values
)
for
(
c
in
sortedConversations
)
c
.
sortHistory
()
for
(
c
in
sortedConversations
)
c
.
sortHistory
()
Collections
.
sort
(
sortedConversations
,
ConversationComparator
())
Collections
.
sort
(
sortedConversations
,
ConversationComparator
())
}
conversationsChanged
=
false
conversationsChanged
=
false
}
}
return
sortedConversations
return
sortedConversations
...
...
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