1
0
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:
krepa098 2015-02-12 09:12:14 +01:00
parent 7d2f515df9
commit f765daf98d

View File

@ -776,7 +776,7 @@ void ChatForm::loadHistory(QDateTime since, bool processUndelivered)
if (msgDate > lastDate)
{
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
@ -812,7 +812,7 @@ void ChatForm::loadHistory(QDateTime since, bool processUndelivered)
getOfflineMsgEngine()->registerReceipt(rec, it.id, msg);
}
}
historyMessages.prepend(msg);
historyMessages.append(msg);
}
previousId = storedPrevId;