Fix pagination after timeline clear
This commit is contained in:
parent
6176ce7c2b
commit
5f315d8a3c
@ -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…
Reference in New Issue
Block a user