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:
@@ -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();
|
||||
}
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user