mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
Use refs in AuthSession part getters.
Also use only AuthSession data for Contacts/Dialogs loaded state.
This commit is contained in:
@@ -53,14 +53,14 @@ public:
|
||||
}
|
||||
bool validateSelf(const MTPUser &user);
|
||||
|
||||
Storage::Downloader *downloader() {
|
||||
return _downloader.get();
|
||||
Storage::Downloader &downloader() {
|
||||
return *_downloader;
|
||||
}
|
||||
|
||||
static base::Observable<void> &CurrentDownloaderTaskFinished();
|
||||
|
||||
Window::Notifications::System *notifications() {
|
||||
return _notifications.get();
|
||||
Window::Notifications::System ¬ifications() {
|
||||
return *_notifications;
|
||||
}
|
||||
|
||||
class Data {
|
||||
|
Reference in New Issue
Block a user