Skip to content

Conversation

gavine99
Copy link
Contributor

@gavine99 gavine99 commented Jan 14, 2025

make unread conversations float at the top of conversation lists (including widget) via a new setting "Unread at the top"
satisfies #41 and #208
and largely satisfies #99 (but continues to also show read messages below unread messages in the widget)

order of conversation list items with the setting turned on is;

  • unread
  • pinned
  • draft
  • last message date

per conversations repo code;

    val sortOrder: MutableList<String> = arrayListOf("pinned", "draft", "lastMessage.date")
    val sortDirections: MutableList<Sort> = arrayListOf(Sort.DESCENDING, Sort.DESCENDING, Sort.DESCENDING)
    if (unreadAtTop) {
        sortOrder.add(0, "lastMessage.read")
        sortDirections.add(0, Sort.ASCENDING)
    }

@octoshrimpy octoshrimpy merged commit c0417aa into octoshrimpy:master Jan 14, 2025
1 check passed
@gavine99 gavine99 deleted the unread_at_top branch January 17, 2025 21:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants