Fix replies not reloading after fetching them

This commit is contained in:
Nicolas Werner 2021-07-16 11:47:49 +02:00
parent b453b65787
commit 0b864d9485
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9
3 changed files with 28 additions and 23 deletions

View file

@ -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
{