Closed Bug 1960978 Opened 1 month ago Closed 29 days ago

In new Settings > Appearance, Unthreaded/Threaded doesn't work

Categories

(Thunderbird :: Preferences, defect, P2)

Thunderbird 139

Tracking

(Not tracked)

VERIFIED FIXED
139 Branch

People

(Reporter: robert.funnell, Assigned: aleca)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:137.0) Gecko/20100101 Firefox/137.0

Steps to reproduce:

Go to Settings > Appearance
Select Unthreaded instead of Threaded
Click on 'Propagate threading and sorting settings to: All existing folders'.

Actual results:

Nothing seemed to happen, the threaded messages were still displayed as threaded

Expected results:

I expected threaded messages in my Inbox to no longer be displayed as threaded

If I click on the 'Message list display options' icon, go to 'Sort by', and change between Threaded and Unthreaded, then the message display changes, but the new setting is not reflected in the new Appearance section.

Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:137.0) Gecko/20100101 Firefox/137.0

I'm investigating this, thanks for the report

Blocks: 1943723
Severity: -- → S4
Priority: -- → P2
Component: General → Preferences
Product: MailNews Core → Thunderbird

The "threaded/unthreaded/grouped by sort" switch in "Settings > Appearance" only sets the default .
The next folder you create will have this setting, it will not be applied to all currently existing folders.

The switch only sets the default, that is not a bug, apply to all folders should work though.

Michel, you're right, I made a mistake in including the sentence 'If I click on … ' in my report.

(In reply to robert.funnell from comment #0)

Click on 'Propagate threading and sorting settings to: All existing folders'.

Can you confirm that if you click on All existing folders button your folders don't get any of the new settings?
Does it happen even if you select another folder and go back to the previous one?

If I click on the 'Message list display options' icon, go to 'Sort by', and change between Threaded and Unthreaded, then the message display changes, but the new setting is not reflected in the new Appearance section.

Yeah, that's normal as the Message list display options only affect the currently visible folder and not all folders.
We will need to fix that strange UX in the future.

Flags: needinfo?(robert.funnell)

(In reply to Alessandro Castellani [:aleca] from comment #5)

Can you confirm that if you click on All existing folders button your folders don't get any of the new settings?
I confirm this.
Does it happen even if you select another folder and go back to the previous one?
If I select another folder and go back to the previous one, then I do see the new Threaded/Unthreaded setting.

If I click on the 'Message list display options' icon, go to 'Sort by', and change between Threaded and Unthreaded, then the message display changes, but the new setting is not reflected in the new Appearance section.

Yeah, that's normal as the Message list display options only affect the currently visible folder and not all folders.
We will need to fix that strange UX in the future.
The behaviour does make sense once it's pointed out, but it's not clear that I'd ever want threading for some folders and not for others.

Thank you for your attention to this.

Flags: needinfo?(robert.funnell)

How to test

  • Select a folder and set it a threaded.
  • Open Settings > Appearance, change default view to unthreaded.
  • Click "Apply all".
  • Confirm that the currently selected folder was properly refreshed and shows the correct view.

This always worked but I wasn't properly refreshing the message list but only invalidating the visible range.
The tests also only covered the actual database flags but not the UI and widget attribute changes.

Assignee: nobody → alessandro
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true

I confirmed the issue and implemented a fix.
The options were properly saved in the folder database but I wasn't correctly reloading the currently selected folder so the UI was showing a stale list.

Target Milestone: --- → 139 Branch

Pushed by heather@thunderbird.net:
https://hg.mozilla.org/comm-central/rev/d000c490409e
Ensure that currently selected folder is refreshed when database flags are changed. r=tobyp

Status: ASSIGNED → RESOLVED
Closed: 29 days ago
Resolution: --- → FIXED

Thanks! It works nicely in Daily :-)

Status: RESOLVED → VERIFIED

Not quite yet, threaded/unthreaded works ok, but grouped by sort sets everything unthreaded.

(In reply to Michel from comment #11)

Not quite yet, threaded/unthreaded works ok, but grouped by sort sets everything unthreaded.

That's how Grouped by Sort works as unfortunately we don't currently support threads for that option.
You could open a request for improvements bug with this (if we don't have one already).

Sorry, I wasn't quite clear, apparently.
If I choose grouped by sort > apply to all (or any) folder(s), those folders should be set grouped by sort.
Right now, they are set unthreaded.

Oh sorry, I misunderstood.
Could you open a bug report and needinfo me on that one so i can investigate?
Thank you

Blocks: 1962278
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: