reordering direct messages by time is only allowed when both messages have been received (not fromMe).

otherwise we would be comparing times from different computers, which may cause messages to get out of order.
This commit is contained in:
Miguel Freitas 2013-11-18 13:54:07 -02:00
parent 37aa4f1827
commit 570d9196a2

View File

@ -783,7 +783,7 @@ bool processReceivedDM(lazy_entry const* post)
stoDM.m_text == (*it).m_text ) {
break;
}
if( stoDM.m_utcTime < (*it).m_utcTime ) {
if( stoDM.m_utcTime < (*it).m_utcTime && !(*it).m_fromMe) {
dmsFromToUser.insert(it, stoDM);
break;
}