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
This commit is contained in:
Tobias Fella
2021-04-08 12:49:35 +02:00
parent becb3a1870
commit ff8c3eb282

View File

@@ -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();