Fix state reset command

This commit is contained in:
Nicolas Werner 2022-12-27 16:15:49 +01:00
parent 6529240be8
commit 01915360b4
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9
3 changed files with 11 additions and 3 deletions

View file

@ -496,7 +496,7 @@ TimelineModel::TimelineModel(TimelineViewManager *manager, QString room_id, QObj
showEventTimer.callOnTimeout(this, &TimelineModel::scrollTimerEvent);
connect(this, &TimelineModel::newState, this, [this](mtx::responses::StateEvents events_) {
cache::client()->updateState(room_id_.toStdString(), events_);
cache::client()->updateState(room_id_.toStdString(), events_, true);
this->syncState({std::move(events_.events)});
});
}