mirror of
https://github.com/danog/telegram-tt.git
synced 2025-01-22 05:11:55 +01:00
Fix crash when logging without "Remember Me" checkbox
This commit is contained in:
parent
a06e0152d0
commit
6bb81a8c0d
@ -1,4 +1,4 @@
|
||||
import { getDispatch } from '../lib/teact/teactn';
|
||||
import { getDispatch, getGlobal } from '../lib/teact/teactn';
|
||||
|
||||
import { DEBUG } from '../config';
|
||||
|
||||
@ -9,4 +9,6 @@ if (DEBUG) {
|
||||
console.log('>>> FINISH LOAD MAIN BUNDLE');
|
||||
}
|
||||
|
||||
getDispatch().initApi();
|
||||
if (!getGlobal().connectionState) {
|
||||
getDispatch().initApi();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user