summary refs log tree commit diff
path: root/src/timeline/TimelineModel.cpp
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2021-07-16 11:47:49 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2021-07-16 11:47:49 +0200
commit0b864d948586d6cc3ef3968376a5b932e06b793e (patch)
treea216860bee68611a16bcb1172cdcbaa88256341d /src/timeline/TimelineModel.cpp
parentTry to make scrolling emoji picker a bit smoother (diff)
downloadnheko-0b864d948586d6cc3ef3968376a5b932e06b793e.tar.xz
Fix replies not reloading after fetching them
Diffstat (limited to '')
-rw-r--r--src/timeline/TimelineModel.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/timeline/TimelineModel.cpp b/src/timeline/TimelineModel.cpp

index ab11f99b..5832f56e 100644 --- a/src/timeline/TimelineModel.cpp +++ b/src/timeline/TimelineModel.cpp
@@ -710,6 +710,14 @@ TimelineModel::data(const QModelIndex &index, int role) const return data(*event, role); } +QVariant +TimelineModel::dataById(QString id, int role, QString relatedTo) +{ + if (auto event = events.get(id.toStdString(), relatedTo.toStdString())) + return data(*event, role); + return QVariant(); +} + bool TimelineModel::canFetchMore(const QModelIndex &) const {