fix for #78372. get "mark thread as read" to work without asserting.

we don't need to set the unread count on the thread, as MarkHdrRead()
will do the right thing:  find the thread for the header and adjust
the unread count on the thread.  sr=bienvenu
This commit is contained in:
sspitzer%netscape.com 2001-05-03 06:04:30 +00:00
parent 4cb7d4deb1
commit 0c8e7b8b5f

View File

@ -3410,22 +3410,13 @@ nsresult nsMsgDBView::MarkThreadRead(nsIMsgThread *threadHdr, nsMsgViewIndex thr
m_db->IsRead(hdrMsgId, &isRead);
if (isRead != bRead) {
// MarkHdrRead will change the unread count on the thread
m_db->MarkHdrRead(msgHdr, bRead, nsnull);
// insert at the front. should we insert at the end?
idsMarkedRead.InsertAt(0, hdrMsgId);
}
}
if (bRead) {
NS_ASSERTION(0,"fix this");
//threadHdr->SetNumNewChildren(0);
}
else {
PRUint32 numChildren;
threadHdr->GetNumChildren(&numChildren);
NS_ASSERTION(0,"fix this");
//threadHdr->SetNumNewChildren(numChildren);
}
return NS_OK;
}