зеркало из https://github.com/mozilla/gecko-dev.git
fix 347665 opening an imap folder with a very large number of new messages is very slow, patch by samuel@sieb.net, sr=bienvenu
This commit is contained in:
Родитель
6f47514ea7
Коммит
d8df8aede4
|
@ -1930,7 +1930,7 @@ PRUint32 nsMsgDatabase::GetStatusFlags(nsIMsgDBHdr *msgHdr, PRUint32 origFlags)
|
|||
|
||||
nsMsgKey key;
|
||||
(void)msgHdr->GetMessageKey(&key);
|
||||
if (m_newSet.GetSize() > 0 && m_newSet.GetAt(m_newSet.GetSize() - 1) == key || m_newSet.IndexOf(key) != kNotFound)
|
||||
if (m_newSet.GetSize() > 0 && m_newSet.GetAt(m_newSet.GetSize() - 1) == key || m_newSet.IndexOfSorted(key) != kNotFound)
|
||||
statusFlags |= MSG_FLAG_NEW;
|
||||
else
|
||||
statusFlags &= ~MSG_FLAG_NEW;
|
||||
|
|
Загрузка…
Ссылка в новой задаче