Fix regressions from RoomPage refactoring

Fixes 581

BUG: 469427
BUG: 469425
This commit is contained in:
Tobias Fella
2023-05-07 09:36:11 +02:00
parent a12a44b722
commit bfdca9ca9e
5 changed files with 60 additions and 44 deletions

View File

@@ -460,7 +460,6 @@ QVariant MessageEventModel::data(const QModelIndex &idx, int role) const
const auto row = idx.row();
if (!m_currentRoom || row < 0 || row >= int(m_currentRoom->pendingEvents().size()) + m_currentRoom->timelineSize()) {
qCWarning(MessageEvent) << "Accessing index out of bounds";
return {};
};