mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-25 12:38:48 +03:00
Fix pagination after timeline clear
This commit is contained in:
parent
6176ce7c2b
commit
5f315d8a3c
2 changed files with 8 additions and 1 deletions
|
@ -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 a new issue