summary refs log tree commit diff
path: root/src/timeline/TimelineModel.cpp
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2024-01-08 00:21:42 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2024-01-08 00:21:42 +0100
commit87c063b112b8c7dc1a858af8406008da48b5260b (patch)
tree424f374bcdc9e4866155ccd2fe587c9aa234abb4 /src/timeline/TimelineModel.cpp
parentFaster blurhash decode (diff)
downloadnheko-87c063b112b8c7dc1a858af8406008da48b5260b.tar.xz
Speedup room switching by forcing a bigger initial item size
Diffstat (limited to 'src/timeline/TimelineModel.cpp')
-rw-r--r--src/timeline/TimelineModel.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/timeline/TimelineModel.cpp b/src/timeline/TimelineModel.cpp

index a49dde3c..05a3c45c 100644 --- a/src/timeline/TimelineModel.cpp +++ b/src/timeline/TimelineModel.cpp
@@ -997,6 +997,8 @@ TimelineModel::multiData(const QModelIndex &index, QModelRoleDataSpan roleDataSp return; } + // nhlog::db()->debug("MultiData called for {}", index.row()); + // HACK(Nico): fetchMore likes to break with dynamically sized delegates and reuseItems if (index.row() + 1 == rowCount() && !m_paginationInProgress) const_cast<TimelineModel *>(this)->fetchMore(index); @@ -1025,6 +1027,8 @@ TimelineModel::multiData(const QString &id, return; } + // nhlog::db()->debug("MultiData called for {}", id.toStdString()); + auto event = events.get(id.toStdString(), relatedTo.toStdString()); if (!event) {