2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-01 15:15:13 +00:00

Move delete-from-ToS to AuthSession.

This commit is contained in:
John Preston
2019-03-27 12:37:25 +04:00
parent 3fa3428b4b
commit efb2972d28
5 changed files with 16 additions and 10 deletions

View File

@@ -898,10 +898,6 @@ rpl::producer<bool> Application::termsLockValue() const {
) | rpl::then(termsLockChanges());
}
void Application::termsDeleteNow() {
MTP::send(MTPaccount_DeleteAccount(MTP_string("Decline ToS update")));
}
bool Application::locked() const {
return passcodeLocked() || termsLocked();
}