diff --git a/src/chatlog/chatwidget.cpp b/src/chatlog/chatwidget.cpp index f38b281cc..e52c9ab3e 100644 --- a/src/chatlog/chatwidget.cpp +++ b/src/chatlog/chatwidget.cpp @@ -1440,7 +1440,7 @@ void ChatWidget::renderItem(const ChatLogItem& item, bool hideName, bool coloriz auto chatMessageType = getChatMessageType(systemMessage); chatMessage = ChatMessage::createChatInfoMessage(systemMessage.toString(), - chatMessageType, QDateTime::currentDateTime(), documentCache, settings, + chatMessageType, systemMessage.timestamp, documentCache, settings, style); // Ignore caller's decision to hide the name. We show the icon in the // slot of the sender's name so we always want it visible diff --git a/src/persistence/history.cpp b/src/persistence/history.cpp index 91b67f5eb..f4682dfa1 100644 --- a/src/persistence/history.cpp +++ b/src/persistence/history.cpp @@ -613,6 +613,7 @@ QList History::getMessagesForChat(const ChatId& chatId, si assert(!it->isNull()); SystemMessage systemMessage; systemMessage.messageType = static_cast((*it++).toLongLong()); + systemMessage.timestamp = timestamp; auto argEnd = std::next(it, systemMessage.args.size()); std::transform(it, argEnd, systemMessage.args.begin(), [](const QVariant& arg) {