mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Remove Auth() global access point.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user