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:
@@ -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 ¬ification, _notifications) {
|
||||
notification->updatePeerPhoto();
|
||||
}
|
||||
|
Reference in New Issue
Block a user