Cleanup logging in TimelineMessageModel

This commit is contained in:
Tobias Fella
2026-02-20 13:44:54 +01:00
parent 3f577adf34
commit 7cfac2151e
2 changed files with 9 additions and 2 deletions

View File

@@ -42,6 +42,13 @@ ecm_add_qml_module(Timeline GENERATE_PLUGIN_SOURCE
org.kde.neochat.libneochat
)
ecm_qt_declare_logging_category(Timeline
HEADER "timelinelogging.h"
IDENTIFIER "Timeline"
CATEGORY_NAME "org.kde.neochat.timeline"
DEFAULT_SEVERITY Info
)
if(NOT TARGET Olm::Olm)
target_compile_definitions(Timeline PRIVATE -DRUST_CRYPTO)
endif()

View File

@@ -3,7 +3,7 @@
#include "timelinemessagemodel.h"
#include "events/pollevent.h"
#include "messagemodel_logging.h"
#include "timelinelogging.h"
#include <Quotient/events/reactionevent.h>
#include <Quotient/thread.h>
@@ -146,7 +146,7 @@ void TimelineMessageModel::connectNewRoom()
endResetModel();
});
qCDebug(Message) << "Connected to room" << m_room->id() << "as" << m_room->localMember().id();
qCDebug(Timeline) << "Connected to room" << m_room->id() << "as" << m_room->localMember().id();
}
// After reset put a read marker in if required.