mirror of
https://github.com/twisterarmy/twister-core.git
synced 2025-01-22 20:44:56 +00:00
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:
parent
37aa4f1827
commit
570d9196a2
@ -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…
x
Reference in New Issue
Block a user