Merge remote-tracking branch 'upstream/main' into merge-gramsrv-9106877
This commit is contained in:
commit
ac6a50c5ff
697 changed files with 100880 additions and 8052 deletions
|
|
@ -12,6 +12,11 @@ import "github.com/iamxvbaba/td/tg"
|
|||
func rpcAllowedWithoutAuthorization(id uint32) bool {
|
||||
switch id {
|
||||
case tg.AuthBindTempAuthKeyRequestTypeID,
|
||||
// TWeb handles a 401 from a remotely revoked session by sending
|
||||
// auth.logOut before it clears IndexedDB/local authorization state.
|
||||
// This cleanup RPC is idempotent when no authorization remains; rejecting
|
||||
// it with another 401 makes Web repeat its startup/logout cycle forever.
|
||||
tg.AuthLogOutRequestTypeID,
|
||||
tg.AuthExportLoginTokenRequestTypeID,
|
||||
tg.AuthImportLoginTokenRequestTypeID,
|
||||
tg.AuthAcceptLoginTokenRequestTypeID,
|
||||
|
|
@ -57,7 +62,6 @@ func rpcAllowedWithoutAuthorization(id uint32) bool {
|
|||
tg.HelpGetPeerProfileColorsRequestTypeID,
|
||||
tg.HelpGetPromoDataRequestTypeID,
|
||||
tg.HelpGetTermsOfServiceUpdateRequestTypeID,
|
||||
tg.HelpGetPremiumPromoRequestTypeID,
|
||||
tg.LangpackGetLanguagesRequestTypeID,
|
||||
tg.LangpackGetLanguageRequestTypeID,
|
||||
tg.LangpackGetLangPackRequestTypeID,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue