mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-01 14:45:29 +00:00
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:
parent
4cb7d4deb1
commit
0c8e7b8b5f
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user