From 223367d3988d95ed40968d2c34542d31cc6f93ff Mon Sep 17 00:00:00 2001 From: morethanwords Date: Fri, 26 Feb 2021 20:28:38 +0400 Subject: [PATCH] Fix initial connection status --- src/lib/mtproto/networker.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib/mtproto/networker.ts b/src/lib/mtproto/networker.ts index 38678e92..e5193d64 100644 --- a/src/lib/mtproto/networker.ts +++ b/src/lib/mtproto/networker.ts @@ -166,6 +166,10 @@ export default class MTPNetworker { // //setInterval(this.sendPingDelayDisconnect, (this.disconnectDelay - 5) * 1000); // this.sendPingDelayDisconnect(); // } + + if((this.transport as TcpObfuscated).connected) { + this.setConnectionStatus(true); + } } public updateSession() {