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

Remove Auth() global access point.

This commit is contained in:
John Preston
2020-06-10 14:49:10 +04:00
parent 7892ba97e6
commit 5f8d22f1f2
24 changed files with 209 additions and 109 deletions

View File

@@ -147,8 +147,6 @@ bool Session::validateSelf(const MTPUser &user) {
}
void Session::saveSettingsDelayed(crl::time delay) {
Expects(this == &Auth());
_saveSettingsTimer.callOnce(delay);
}
@@ -184,7 +182,3 @@ void Session::saveSettingsNowIfNeeded() {
}
} // namespace Main
Main::Session &Auth() {
return Core::App().activeAccount().session();
}