Bug 139242: News: Thread with new messages spontaneously expands; p=Pawel Kaczmarczyk <jacenty@ceti.pl>, r/sr=bienvenu

This commit is contained in:
mnyromyr%tprac.de 2006-06-15 16:06:35 +00:00
parent f87cf04198
commit 20914da270

View File

@ -125,7 +125,8 @@ function SelectAndScrollToKey(aMsgKey)
// returns true if we ended up scrolling to a message
function ScrollToMessageAfterFolderLoad (folder)
{
var scrolled = ScrollToMessage(nsMsgNavigationType.firstNew, true, false /* selectMessage */);
var scrolled = pref.getBoolPref("mailnews.scroll_to_new_message") &&
ScrollToMessage(nsMsgNavigationType.firstNew, true, false /* selectMessage */);
if (!scrolled && folder && pref.getBoolPref("mailnews.remember_selected_message"))
{
// if we failed to scroll to a new message,