2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Access _authSession through activeAccount().

This commit is contained in:
John Preston
2019-06-05 23:41:51 +03:00
parent bd2e1ceb02
commit 94c4ea6174
10 changed files with 93 additions and 54 deletions

View File

@@ -55,8 +55,8 @@ std::unique_ptr<Manager> Create(System *system) {
Manager::Manager(System *system)
: Notifications::Manager(system)
, _inputCheckTimer([=] { checkLastInput(); }) {
subscribe(system->authSession()->downloader().taskFinished(), [this] {
for_const (auto &notification, _notifications) {
subscribe(system->session().downloader().taskFinished(), [this] {
for (const auto &notification : _notifications) {
notification->updatePeerPhoto();
}
});