summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2020-07-18 21:14:45 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2020-07-18 21:14:45 +0200
commit8261446f839315ee683ae23f6c5cbc4a9a025e0a (patch)
tree89fb93ec41ba4658597eec84a7b0f93d0f688a4b /src
parentFix race condition between /messages and /sync (diff)
downloadnheko-8261446f839315ee683ae23f6c5cbc4a9a025e0a.tar.xz
Fix reply scrolling
Diffstat (limited to 'src')
-rw-r--r--src/timeline/TimelineModel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/timeline/TimelineModel.cpp b/src/timeline/TimelineModel.cpp

index 8e5b245b..470e3988 100644 --- a/src/timeline/TimelineModel.cpp +++ b/src/timeline/TimelineModel.cpp
@@ -729,7 +729,7 @@ TimelineModel::idToIndex(QString id) const auto idx = events.idToIndex(id.toStdString()); if (idx) - return events.size() - *idx; + return events.size() - *idx - 1; else return -1; } @@ -737,7 +737,7 @@ TimelineModel::idToIndex(QString id) const QString TimelineModel::indexToId(int index) const { - auto id = events.indexToId(events.size() - index); + auto id = events.indexToId(events.size() - index - 1); return id ? QString::fromStdString(*id) : ""; }