Fix pagination after timeline clear

pull/1316/head
Nicolas Werner 2 years ago
parent 6176ce7c2b
commit 5f315d8a3c
No known key found for this signature in database
GPG Key ID: C8D75E610773F2D9
  1. 3
      src/timeline/TimelineModel.cpp
  2. 6
      src/timeline/TimelineModel.h

@ -975,6 +975,9 @@ TimelineModel::addEvents(const mtx::responses::Timeline &timeline)
if (timeline.events.empty())
return;
if (timeline.limited)
setPaginationInProgress(false);
events.handleSync(timeline);
using namespace mtx::events;

@ -398,7 +398,11 @@ public slots:
void setThread(const QString &newThread);
void resetThread();
void setDecryptDescription(bool decrypt) { decryptDescription = decrypt; }
void clearTimeline() { events.clearTimeline(); }
void clearTimeline()
{
events.clearTimeline();
setPaginationInProgress(false);
}
void resetState();
void receivedSessionKey(const std::string &session_key)
{

Loading…
Cancel
Save