Remove warning when event to refresh wasn't found

This can legitimitely happen, e.g. when a reaction is loaded for an event that we haven't loaded
This commit is contained in:
Tobias Fella
2023-04-29 21:28:32 +02:00
parent 01b34c5b8c
commit 9e780b8eb2

View File

@@ -314,7 +314,6 @@ int MessageEventModel::refreshEventRoles(const QString &id, const QVector<int> &
} else {
const auto timelineIt = m_currentRoom->findInTimeline(id);
if (timelineIt == m_currentRoom->historyEdge()) {
qWarning() << "Trying to refresh inexistent event:" << id;
return -1;
}
row = int(timelineIt - m_currentRoom->messageEvents().rbegin()) + timelineBaseIndex();