mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-30 22:16:14 +00:00
Move delete-from-ToS to AuthSession.
This commit is contained in:
@@ -480,6 +480,12 @@ void AuthSession::localPasscodeChanged() {
|
||||
checkAutoLock();
|
||||
}
|
||||
|
||||
void AuthSession::termsDeleteNow() {
|
||||
api().request(MTPaccount_DeleteAccount(
|
||||
MTP_string("Decline ToS update")
|
||||
)).send();
|
||||
}
|
||||
|
||||
void AuthSession::checkAutoLock() {
|
||||
if (!Global::LocalPasscode()
|
||||
|| Core::App().passcodeLocked()) {
|
||||
|
Reference in New Issue
Block a user