Fix replies not reloading after fetching them
This commit is contained in:
parent
b453b65787
commit
0b864d9485
3 changed files with 28 additions and 23 deletions
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue