mirror of https://github.com/procxx/kepka.git
Create changelogs after data in AuthSession.
This commit is contained in:
parent
1dd66184a1
commit
f8c2f339a0
|
@ -274,8 +274,8 @@ AuthSession::AuthSession(UserId userId)
|
||||||
, _uploader(std::make_unique<Storage::Uploader>())
|
, _uploader(std::make_unique<Storage::Uploader>())
|
||||||
, _storage(std::make_unique<Storage::Facade>())
|
, _storage(std::make_unique<Storage::Facade>())
|
||||||
, _notifications(std::make_unique<Window::Notifications::System>(this))
|
, _notifications(std::make_unique<Window::Notifications::System>(this))
|
||||||
, _changelogs(Core::Changelogs::Create(this))
|
, _data(std::make_unique<Data::Session>(this))
|
||||||
, _data(std::make_unique<Data::Session>(this)) {
|
, _changelogs(Core::Changelogs::Create(this)) {
|
||||||
Expects(_userId != 0);
|
Expects(_userId != 0);
|
||||||
|
|
||||||
_saveDataTimer.setCallback([this] {
|
_saveDataTimer.setCallback([this] {
|
||||||
|
|
|
@ -258,11 +258,13 @@ private:
|
||||||
const std::unique_ptr<Storage::Uploader> _uploader;
|
const std::unique_ptr<Storage::Uploader> _uploader;
|
||||||
const std::unique_ptr<Storage::Facade> _storage;
|
const std::unique_ptr<Storage::Facade> _storage;
|
||||||
const std::unique_ptr<Window::Notifications::System> _notifications;
|
const std::unique_ptr<Window::Notifications::System> _notifications;
|
||||||
const std::unique_ptr<Core::Changelogs> _changelogs;
|
|
||||||
|
|
||||||
// _data depends on _downloader / _uploader, including destructor.
|
// _data depends on _downloader / _uploader, including destructor.
|
||||||
const std::unique_ptr<Data::Session> _data;
|
const std::unique_ptr<Data::Session> _data;
|
||||||
|
|
||||||
|
// _changelogs depends on _data, subscribes on chats loading event.
|
||||||
|
const std::unique_ptr<Core::Changelogs> _changelogs;
|
||||||
|
|
||||||
rpl::lifetime _lifetime;
|
rpl::lifetime _lifetime;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue