2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Use refs in AuthSession part getters.

Also use only AuthSession data for Contacts/Dialogs loaded state.
This commit is contained in:
John Preston
2017-03-15 19:24:06 +03:00
parent 1027bd431a
commit d91a2403b0
24 changed files with 54 additions and 73 deletions

View File

@@ -64,7 +64,7 @@ std::unique_ptr<Manager> Create(System *system) {
}
Manager::Manager(System *system) : Notifications::Manager(system) {
subscribe(system->authSession()->downloader()->taskFinished(), [this] {
subscribe(system->authSession()->downloader().taskFinished(), [this] {
for_const (auto &notification, _notifications) {
notification->updatePeerPhoto();
}