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 ba4aa96 commit 12f12e2Copy full SHA for 12f12e2
1 file changed
src/MTProto/NewAuthKey.php
@@ -213,9 +213,9 @@ public function init(): void
213
$this->authedDcId === null
214
? ConnectionState::ENCRYPTED_NOT_AUTHED_NO_LOGIN
215
: (
216
- $this->authedDcId === $this->dcId
217
- ? ConnectionState::ENCRYPTED
218
- : ConnectionState::ENCRYPTED_NOT_AUTHED
+ $this->authedDcId === $this->dcId || $this->isMedia
+ ? ConnectionState::ENCRYPTED
+ : ConnectionState::ENCRYPTED_NOT_AUTHED
219
)
220
);
221
$this->connectionState->publish($state);
0 commit comments