Skip to content

feat(settings): add thread message order preference#12510

Open
lukas-remis wants to merge 1 commit intonextcloud:mainfrom
lukas-remis:feat/thread-order-setting
Open

feat(settings): add thread message order preference#12510
lukas-remis wants to merge 1 commit intonextcloud:mainfrom
lukas-remis:feat/thread-order-setting

Conversation

@lukas-remis
Copy link

Adds a "Thread message order" setting (Oldest first / Newest first) to the Mail appearance settings. The preference is stored under the key 'thread-order' and defaults to 'oldest' (existing behaviour).

  • PageController: expose preference via initial state
  • init.js: load preference into store on startup
  • mainStore: reverse getEnvelopesByThreadRootId when 'newest'
  • AppSettingsMenu: add radio group UI below the Sorting setting

Closes #12072

@kesselb
Copy link
Contributor

kesselb commented Mar 3, 2026

Thanks a lot for your pr 👍

That looks like a nice enhancement.

Could you try to fix the DCO check by signing off your commit?

I think "settings" as scope is a bit wrong, because the main change is in the thread view. If a change touches multiple areas, it's fine to leave it out.

Adds a "Thread message order" setting (Oldest first / Newest first)
to the Mail appearance settings. The preference is stored under the
key 'thread-order' and defaults to 'oldest' (existing behaviour).

- PageController: expose preference via initial state
- init.js: load preference into store on startup
- mainStore: reverse getEnvelopesByThreadRootId when 'newest'
- AppSettingsMenu: add radio group UI below the Sorting setting
- PageControllerTest: update mock counts and expected preferences

Closes nextcloud#12072

Signed-off-by: lukas-remis <lukas.remis@gmail.com>
@lukas-remis lukas-remis force-pushed the feat/thread-order-setting branch from d3db1dc to 7536534 Compare March 4, 2026 14:16
delete updated[parentEnvelopeId]
this.pendingInlineReplies = updated
localStorage.setItem(`mail_pending_inline_replies_${userId}`, JSON.stringify(this.pendingInlineReplies))
},
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These seem to be unused

})

mainStore.setQuickActions(loadState('mail', 'quick-actions', []))
mainStore.loadPendingInlineRepliesMutation(getCurrentUser()?.uid ?? '')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this even related?

@github-actions
Copy link

Hello there,
Thank you so much for taking the time and effort to create a pull request to our Nextcloud project.

We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process.

Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6

Thank you for contributing to Nextcloud and we hope to hear from you soon!

(If you believe you should not receive this message, you can add yourself to the blocklist.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add option to reverse the thread order

3 participants