mirror of
https://github.com/danog/telegram-tt.git
synced 2024-11-27 04:45:08 +01:00
Follow-up
This commit is contained in:
parent
322ae7077f
commit
0f0ebeafe0
@ -152,8 +152,9 @@ function onUpdateConnectionState(update: ApiUpdateConnectionState) {
|
||||
function onUpdateSession(update: ApiUpdateSession) {
|
||||
const { sessionData } = update;
|
||||
const { authRememberMe, authState } = getGlobal();
|
||||
const isEmpty = !sessionData || !sessionData.mainDcId;
|
||||
|
||||
if (!authRememberMe || (sessionData && authState !== 'authorizationStateReady')) {
|
||||
if (!authRememberMe || authState !== 'authorizationStateReady' || isEmpty) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user