We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f90727c commit ba4aa96Copy full SHA for ba4aa96
1 file changed
src/MTProto/NewAuthKey.php
@@ -75,7 +75,7 @@ public function onSimpleStateChange($state): void
75
$state = $this->mainKey->connectionState->getState();
76
77
if ($this->connectionState->getState() === ConnectionState::UNENCRYPTED_MEDIA_WAITING_MAIN) {
78
- if ($state->isEncrypted()) {
+ if ($state === ConnectionState::ENCRYPTED) {
79
$this->setAuthKey($this->mainKey->authKey);
80
}
81
} else {
0 commit comments