Browse Source

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.
miguelfreitas
Miguel Freitas 11 years ago
parent
commit
570d9196a2
  1. 2
      src/twister.cpp

2
src/twister.cpp

@ -783,7 +783,7 @@ bool processReceivedDM(lazy_entry const* post) @@ -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;
}

Loading…
Cancel
Save