From a53610ccb941db38e88cfa48be99178eb94a937f Mon Sep 17 00:00:00 2001 From: Wizou <11647984+wiz0u@users.noreply.github.com> Date: Tue, 19 Apr 2022 13:39:33 +0200 Subject: [PATCH] call OnUpdate(signUpRequired) instead of OnUpdate(TOS) only --- src/Client.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Client.cs b/src/Client.cs index f9335e0..6129b15 100644 --- a/src/Client.cs +++ b/src/Client.cs @@ -955,8 +955,7 @@ namespace WTelegram if (authorization is Auth_AuthorizationSignUpRequired signUpRequired) { var waitUntil = DateTime.UtcNow.AddSeconds(3); - if (signUpRequired.terms_of_service != null) - OnUpdate(signUpRequired.terms_of_service); // give caller the possibility to read and accept TOS + OnUpdate(signUpRequired); // give caller the possibility to read and accept TOS var first_name = Config("first_name"); var last_name = Config("last_name"); var wait = waitUntil - DateTime.UtcNow;