Skip to content

Commit 12f12e2

Browse files
committed
Fix
1 parent ba4aa96 commit 12f12e2

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/MTProto/NewAuthKey.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -213,9 +213,9 @@ public function init(): void
213213
$this->authedDcId === null
214214
? ConnectionState::ENCRYPTED_NOT_AUTHED_NO_LOGIN
215215
: (
216-
$this->authedDcId === $this->dcId
217-
? ConnectionState::ENCRYPTED
218-
: ConnectionState::ENCRYPTED_NOT_AUTHED
216+
$this->authedDcId === $this->dcId || $this->isMedia
217+
? ConnectionState::ENCRYPTED
218+
: ConnectionState::ENCRYPTED_NOT_AUTHED
219219
)
220220
);
221221
$this->connectionState->publish($state);

0 commit comments

Comments
 (0)