Closed Bug 1741542 Opened 2 years ago Closed 2 years ago

Update new message display UI on changes to message properties

Categories

(Thunderbird :: Mail Window Front End, enhancement)

enhancement

Tracking

(thunderbird_esr91 wontfix)

RESOLVED FIXED
96 Branch
Tracking Status
thunderbird_esr91 --- wontfix

People

(Reporter: darktrojan, Assigned: darktrojan)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

The existing message display is only updated if another part of the UI tells it to (e.g. a command changes the tags and then tells the display the tags changed) or if it reloads. This is bad because the message displays don't react to changes triggered by unrelated parts of the UI or something else changing message properties.

The message display should listen for changes to the message it is displaying and react if they happen.

I modified the nsIDBChangeListener interface to pass the name of the changed property when a property changes. This wasn't strictly necessary but it is a useful optimisation.

Change listeners aren't even notified if a change happens to a nsMsgHdr object directly (it writes straight to the database and doesn't tell anybody) but that doesn't seem to be a major problem as the changes I'm interested in go through nsMsgDatabase.

Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/6021d4fe5e5a
Give the name of the changed property in nsIDBChangeListener.onHdrPropertyChanged. r=mkmelin

Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 96 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: