2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +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();
}

View File

@@ -64,10 +64,7 @@ namespace Core {
class Launcher;
struct LocalUrlHandler;
class Application final
: public QObject
, public RPCSender
, private base::Subscriber {
class Application final : public QObject, private base::Subscriber {
public:
Application(not_null<Launcher*> launcher);
@@ -188,7 +185,6 @@ public:
[[nodiscard]] std::optional<Window::TermsLock> termsLocked() const;
rpl::producer<bool> termsLockChanges() const;
rpl::producer<bool> termsLockValue() const;
void termsDeleteNow();
[[nodiscard]] bool locked() const;
rpl::producer<bool> lockChanges() const;