mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
reverse history entries as they are no longer reversed in
ChatLog::insertChatlineOnTop
This commit is contained in:
parent
7d2f515df9
commit
f765daf98d
|
@ -776,7 +776,7 @@ void ChatForm::loadHistory(QDateTime since, bool processUndelivered)
|
||||||
if (msgDate > lastDate)
|
if (msgDate > lastDate)
|
||||||
{
|
{
|
||||||
lastDate = msgDate;
|
lastDate = msgDate;
|
||||||
historyMessages.prepend(ChatMessage::createChatInfoMessage(msgDate.toString(), ChatMessage::INFO, QDateTime::currentDateTime()));
|
historyMessages.append(ChatMessage::createChatInfoMessage(msgDate.toString(), ChatMessage::INFO, QDateTime::currentDateTime()));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Show each messages
|
// Show each messages
|
||||||
|
@ -812,7 +812,7 @@ void ChatForm::loadHistory(QDateTime since, bool processUndelivered)
|
||||||
getOfflineMsgEngine()->registerReceipt(rec, it.id, msg);
|
getOfflineMsgEngine()->registerReceipt(rec, it.id, msg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
historyMessages.prepend(msg);
|
historyMessages.append(msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
previousId = storedPrevId;
|
previousId = storedPrevId;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user