[network/ruqola] src/core/localdatabase: Don't remove timestamp when we remove message otherwise timestamp is invalid

Laurent Montel <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit f4e8e43a7588e2e960f30389e4b46cbe2603ae00 by Laurent Montel.
Committed on 28/07/2026 at 19:11.
Pushed by mlaurent into branch 'master'.

Don't remove timestamp when we remove message otherwise timestamp is invalid

M  +1    -1    src/core/localdatabase/localdatabasemanager.cpp

https://invent.kde.org/network/ruqola/-/commit/f4e8e43a7588e2e960f30389e4b46cbe2603ae00

diff --git a/src/core/localdatabase/localdatabasemanager.cpp b/src/core/localdatabase/localdatabasemanager.cpp
index 6af568a6a7..d0a5f74c7e 100644
--- a/src/core/localdatabase/localdatabasemanager.cpp
+++ b/src/core/localdatabase/localdatabasemanager.cpp
@@ -63,7 +63,7 @@ void LocalDatabaseManager::deleteMessage(const QString &accountName, const QByte
     mMessageLogger->deleteMessage(accountName, roomId, msgId);
     if (RuqolaGlobalConfig::self()->storeMessageInDataBase()) {
         mMessagesDatabase->deleteMessage(accountName, roomId, msgId);
-        mGlobalDatabase->removeTimeStamp(accountName, roomId, GlobalDatabase::TimeStampType::MessageTimeStamp);
+        // Don't remove MessageTimeStamp - it tracks when messages existed in this room
         mGlobalDatabase->insertOrReplaceTimeStamp(accountName,
                                                   {},
                                                   LocalDatabaseUtils::currentTimeStamp(),
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.