Don't spam key requests directly after startup
This commit is contained in:
parent
eb6baf619a
commit
d30446a8b3
3 changed files with 23 additions and 0 deletions
|
|
@ -379,6 +379,7 @@ TimelineModel::TimelineModel(TimelineViewManager *manager, QString room_id, QObj
|
|||
connect(&events, &EventStore::updateFlowEventId, this, [this](std::string event_id) {
|
||||
this->updateFlowEventId(event_id);
|
||||
});
|
||||
|
||||
// When a message is sent, check if the current edit/reply relates to that message,
|
||||
// and update the event_id so that it points to the sent message and not the pending one.
|
||||
connect(&events,
|
||||
|
|
@ -395,6 +396,11 @@ TimelineModel::TimelineModel(TimelineViewManager *manager, QString room_id, QObj
|
|||
}
|
||||
});
|
||||
|
||||
connect(manager_,
|
||||
&TimelineViewManager::initialSyncChanged,
|
||||
&events,
|
||||
&EventStore::enableKeyRequests);
|
||||
|
||||
showEventTimer.callOnTimeout(this, &TimelineModel::scrollTimerEvent);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue