2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-05 09:05:14 +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

@@ -46,7 +46,7 @@ UserData *AuthSession::CurrentUser() {
}
base::Observable<void> &AuthSession::CurrentDownloaderTaskFinished() {
return Current().downloader()->taskFinished();
return Current().downloader().taskFinished();
}
bool AuthSession::validateSelf(const MTPUser &user) {