fix twisty showing up on new messages in threads with unread view r=naving, sr=sspitzer 74237

This commit is contained in:
bienvenu%netscape.com 2001-05-02 14:29:10 +00:00
Родитель 4da58efd40
Коммит 2e87a587c3
1 изменённых файлов: 19 добавлений и 8 удалений

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

@ -68,7 +68,13 @@ nsresult nsMsgThreadsWithUnreadDBView::AddMsgToThreadNotInView(nsIMsgThread *thr
GetFirstMessageHdrToDisplayInThread(threadHdr, getter_AddRefs(parentHdr));
if (parentHdr && (ensureListed || !(msgFlags & MSG_FLAG_READ)))
{
parentHdr->OrFlags(MSG_VIEW_FLAG_HASCHILDREN | MSG_VIEW_FLAG_ISTHREAD, &newFlags);
PRUint32 orFlags = MSG_VIEW_FLAG_ISTHREAD;
PRUint32 numChildren;
threadHdr->GetNumChildren(&numChildren);
if (numChildren > 1)
orFlags |= MSG_VIEW_FLAG_HASCHILDREN;
parentHdr->OrFlags(orFlags, &newFlags);
if (!(m_viewFlags & nsMsgViewFlagsType::kUnreadOnly))
parentHdr->OrFlags(MSG_FLAG_ELIDED, &newFlags);
rv = AddHdr(parentHdr);
@ -111,7 +117,12 @@ nsresult nsMsgWatchedThreadsWithUnreadDBView::AddMsgToThreadNotInView(nsIMsgThre
GetFirstMessageHdrToDisplayInThread(threadHdr, getter_AddRefs(parentHdr));
if (parentHdr && (ensureListed || !(msgFlags & MSG_FLAG_READ)))
{
parentHdr->OrFlags(MSG_FLAG_ELIDED | MSG_VIEW_FLAG_HASCHILDREN | MSG_VIEW_FLAG_ISTHREAD, &newFlags);
PRUint32 orFlags = MSG_VIEW_FLAG_ISTHREAD | MSG_FLAG_ELIDED;
PRUint32 numChildren;
threadHdr->GetNumChildren(&numChildren);
if (numChildren > 1)
orFlags |= MSG_VIEW_FLAG_HASCHILDREN;
parentHdr->OrFlags(orFlags, &newFlags);
rv = AddHdr(parentHdr);
}
}