mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 21:05:36 +00:00
Bug #326846 read mail not marked as read from the stand alone message window.
Fix a JS error that was causing this problem from Bug 183394. sr=bienvenu
This commit is contained in:
parent
e360eb3815
commit
994a9b69bb
@ -2329,9 +2329,8 @@ function OnMsgLoaded(aUrl)
|
||||
// SetNextMessageAfterDelete() when the operation completes (bug 243532).
|
||||
// But the just loaded message might be getting deleted, if the user
|
||||
// deletes it before the message is loaded (bug 183394)
|
||||
var treeSelection = GetThreadTree().view.selection;
|
||||
|
||||
if (treeSelection.currentIndex != gSelectedIndexWhenDeleting)
|
||||
var wintype = document.documentElement.getAttribute('windowtype');
|
||||
if (wintype == "mail:messageWindow" || GetThreadTree().view.selection.currentIndex != gSelectedIndexWhenDeleting)
|
||||
gNextMessageViewIndexAfterDelete = -2;
|
||||
|
||||
if (!(/type=application\/x-message-display/.test(msgURI)))
|
||||
@ -2346,7 +2345,6 @@ function OnMsgLoaded(aUrl)
|
||||
|
||||
if (msgHdr && !msgHdr.isRead)
|
||||
{
|
||||
var wintype = document.documentElement.getAttribute('windowtype');
|
||||
if (markReadOnADelay && wintype == "mail:3pane") // only use the timer if viewing using the 3-pane preview pane and the user has set the pref
|
||||
{
|
||||
ClearPendingReadTimer();
|
||||
|
Loading…
Reference in New Issue
Block a user