Fix: Chat history in wrong order, doesn't pop up

This commit is contained in:
Cory Sanin 2023-03-15 03:57:05 -05:00 committed by GitHub
parent b41438bbc9
commit a102688f5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -222,12 +222,12 @@ void ChatAddHistory(std::string_view s)
if (_chatHistory.size() >= CHAT_HISTORY_SIZE)
{
_chatHistory.pop_front();
_chatHistoryTime.pop_front();
_chatHistory.pop_back();
_chatHistoryTime.pop_back();
}
_chatHistory.push_back(buffer);
_chatHistoryTime.push_back(Platform::GetTicks());
_chatHistory.push_front(buffer);
_chatHistoryTime.push_front(Platform::GetTicks());
// Log to file (src only as logging does its own timestamp)
NetworkAppendChatLog(s);