Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Briar Desktop
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
briar
Briar Desktop
Commits
d7d55fa4
Commit
d7d55fa4
authored
Sep 14, 2021
by
Sebastian
Browse files
Options
Downloads
Patches
Plain Diff
Clarify why we need to reverse the message items for layout
parent
9e6521bb
Branches
Branches containing commit
Tags
Tags containing commit
Loading
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/kotlin/org/briarproject/briar/desktop/paul/views/PrivateMessageView.kt
+2
-1
2 additions, 1 deletion
...iarproject/briar/desktop/paul/views/PrivateMessageView.kt
with
2 additions
and
1 deletion
src/main/kotlin/org/briarproject/briar/desktop/paul/views/PrivateMessageView.kt
+
2
−
1
View file @
d7d55fa4
...
@@ -423,7 +423,8 @@ fun ChatState(
...
@@ -423,7 +423,8 @@ fun ChatState(
val
visitor
=
ChatHistoryConversationVisitor
(
chat
,
messagingManager
)
val
visitor
=
ChatHistoryConversationVisitor
(
chat
,
messagingManager
)
val
messageHeaders
:
List
<
ConversationMessageHeader
>
=
ArrayList
(
conversationManager
.
getMessageHeaders
(
id
))
val
messageHeaders
:
List
<
ConversationMessageHeader
>
=
ArrayList
(
conversationManager
.
getMessageHeaders
(
id
))
Collections
.
sort
(
messageHeaders
,
ConversationMessageHeaderComparator
())
Collections
.
sort
(
messageHeaders
,
ConversationMessageHeaderComparator
())
// FIXME: for some reason messages are displayed in reverse order
// Reverse order here because we're using reverseLayout=true on the LazyColumn to display items
// from bottom to top
Collections
.
reverse
(
messageHeaders
)
Collections
.
reverse
(
messageHeaders
)
for
(
header
in
messageHeaders
)
{
for
(
header
in
messageHeaders
)
{
header
.
accept
(
visitor
)
header
.
accept
(
visitor
)
...
...
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