Skip to content

Commit 7802186

Browse files
committed
Update MessageQuery.php
1 parent cc3af4a commit 7802186

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/MessageQuery.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -830,7 +830,7 @@ public function find(int $id, int $identifier = Imap::SEQUENCE_TYPE_UID): Messag
830830
// If the sequence is not UID, we'll need to fetch the UID first.
831831
$uid = match ($identifier) {
832832
Imap::SEQUENCE_TYPE_UID => $id,
833-
Imap::SEQUENCE_TYPE_MSG_NUMBER => $this->connection()->uids([10]) // ResponseCollection
833+
Imap::SEQUENCE_TYPE_MSG_NUMBER => $this->connection()->uids([$id]) // ResponseCollection
834834
->firstOrFail() // Untagged response
835835
->tokenAt(3) // ListData
836836
->tokenAt(1) // Atom

0 commit comments

Comments
 (0)