Fix loading events when scrolling or opening a room for the first time

Fix #362
This commit is contained in:
Carl Schwan
2021-05-23 18:24:55 +02:00
parent dded804f00
commit bae7813f68
3 changed files with 30 additions and 12 deletions

View File

@@ -76,6 +76,9 @@ private:
[[nodiscard]] QDateTime makeMessageTimestamp(const Quotient::Room::rev_iter_t &baseIt) const;
[[nodiscard]] static QString renderDate(const QDateTime &timestamp);
bool canFetchMore(const QModelIndex &parent) const override;
void fetchMore(const QModelIndex &parent) override;
void refreshLastUserEvents(int baseTimelineRow);
void refreshEventRoles(int row, const QVector<int> &roles = {});
int refreshEventRoles(const QString &eventId, const QVector<int> &roles = {});