From ff8c3eb28214b81994cc280146b26c8c77cb62e2 Mon Sep 17 00:00:00 2001 From: Tobias Fella Date: Thu, 8 Apr 2021 12:49:35 +0200 Subject: [PATCH] Remove debug output Trying to find an inexistent event can happen when the event is not loaded yet, so we should not spam the console when it happens --- src/messageeventmodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/messageeventmodel.cpp b/src/messageeventmodel.cpp index 0f9ee7aff..ecfc7562f 100644 --- a/src/messageeventmodel.cpp +++ b/src/messageeventmodel.cpp @@ -632,7 +632,7 @@ int MessageEventModel::eventIDToIndex(const QString &eventID) const { const auto it = m_currentRoom->findInTimeline(eventID); if (it == m_currentRoom->timelineEdge()) { - qWarning() << "Trying to find inexistent event:" << eventID; + //qWarning() << "Trying to find inexistent event:" << eventID; return -1; } return it - m_currentRoom->messageEvents().rbegin() + timelineBaseIndex();