Skip to content

Commit ba4aa96

Browse files
committed
Fix
1 parent f90727c commit ba4aa96

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/MTProto/NewAuthKey.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public function onSimpleStateChange($state): void
7575
$state = $this->mainKey->connectionState->getState();
7676

7777
if ($this->connectionState->getState() === ConnectionState::UNENCRYPTED_MEDIA_WAITING_MAIN) {
78-
if ($state->isEncrypted()) {
78+
if ($state === ConnectionState::ENCRYPTED) {
7979
$this->setAuthKey($this->mainKey->authKey);
8080
}
8181
} else {

0 commit comments

Comments
 (0)