mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-10-30 17:40:47 +03:00
Fix reply scrolling
This commit is contained in:
parent
5695f004a2
commit
8261446f83
1 changed files with 2 additions and 2 deletions
|
@ -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) : "";
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue