зеркало из https://github.com/mozilla/pjs.git
fix for phantom messages in db, sr=mscott 227472
This commit is contained in:
Родитель
7449a66af8
Коммит
fc2b692038
|
@ -1042,7 +1042,19 @@ nsresult nsMsgThread::GetChildHdrForKey(nsMsgKey desiredKey, nsIMsgDBHdr **resul
|
|||
(*result)->GetMessageKey(&msgKey);
|
||||
|
||||
if (msgKey == desiredKey)
|
||||
{
|
||||
nsMsgKey threadKey;
|
||||
(*result)->GetThreadId(&threadKey);
|
||||
if (threadKey != m_threadKey) // this msg isn't in this thread
|
||||
{
|
||||
PRUint32 msgSize;
|
||||
(*result)->GetMessageSize(&msgSize);
|
||||
if (msgSize == 0) // this is a phantom message - let's get rid of it.
|
||||
RemoveChild(msgKey);
|
||||
rv = NS_ERROR_UNEXPECTED;
|
||||
}
|
||||
break;
|
||||
}
|
||||
NS_RELEASE(*result);
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче