Follow-up
This commit is contained in:
parent
322ae7077f
commit
0f0ebeafe0
@ -152,8 +152,9 @@ function onUpdateConnectionState(update: ApiUpdateConnectionState) {
|
|||||||
function onUpdateSession(update: ApiUpdateSession) {
|
function onUpdateSession(update: ApiUpdateSession) {
|
||||||
const { sessionData } = update;
|
const { sessionData } = update;
|
||||||
const { authRememberMe, authState } = getGlobal();
|
const { authRememberMe, authState } = getGlobal();
|
||||||
|
const isEmpty = !sessionData || !sessionData.mainDcId;
|
||||||
|
|
||||||
if (!authRememberMe || (sessionData && authState !== 'authorizationStateReady')) {
|
if (!authRememberMe || authState !== 'authorizationStateReady' || isEmpty) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user