supplementary patch for bug 99048: Automatically mark newsgroup read [when

leaving folder]
patch by Karsten D��sterloh <mnyromyr@tprac.de> r=bienvenu sr=neil
This commit is contained in:
cbiesinger%web.de 2005-01-12 19:39:56 +00:00
Родитель bb186586db
Коммит 2a776e3624
2 изменённых файлов: 10 добавлений и 6 удалений

Просмотреть файл

@ -1154,10 +1154,12 @@ function OnLeavingFolder(aFolder)
{
try
{
if (gPrefBranch.getBoolPref("mailnews.mark_message_read." + aFolder.server.type))
// Mark all messages of aFolder as read:
// We can't use the command controller, because it is already tuned in to the
// new folder, so we just mimic its behaviour wrt goDoCommand('cmd_markAllRead').
if (gDBView && gPrefBranch.getBoolPref("mailnews.mark_message_read." + aFolder.server.type))
{
// mark all messages of aFolder as read
goDoCommand('cmd_markAllRead');
gDBView.doCommand(nsMsgViewCommandType.markAllRead);
}
}
catch(e){/* ignore */}

Просмотреть файл

@ -1193,10 +1193,12 @@ function OnLeavingFolder(aFolder)
{
try
{
if (gPrefBranch.getBoolPref("mailnews.mark_message_read." + aFolder.server.type))
// Mark all messages of aFolder as read:
// We can't use the command controller, because it is already tuned in to the
// new folder, so we just mimic its behaviour wrt goDoCommand('cmd_markAllRead').
if (gDBView && gPrefBranch.getBoolPref("mailnews.mark_message_read." + aFolder.server.type))
{
// mark all messages of aFolder as read
goDoCommand('cmd_markAllRead');
gDBView.doCommand(nsMsgViewCommandType.markAllRead);
}
}
catch(e){/* ignore */}