Skip to content

Commit 695de7c

Browse files
committed
bug #39522 [Notifier] Set message id on SentMessage (OskarStark)
This PR was squashed before being merged into the 5.2 branch. Discussion ---------- [Notifier] Set message id on SentMessage | Q | A | ------------- | --- | Branch? | 5.2 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | --- | License | MIT | Doc PR | --- @ismail1432 what do you think? Commits ------- 9dd09e632d [Notifier] Set message id on SentMessage
2 parents c02405d + fabd7d5 commit 695de7c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

LinkedInTransport.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,10 @@ protected function doSend(MessageInterface $message): SentMessage
9090
throw new TransportException(sprintf('Unable to post the Linkedin message : "%s".', $result['error']), $response);
9191
}
9292

93-
return new SentMessage($message, (string) $this);
93+
$sentMessage = new SentMessage($message, (string) $this);
94+
$sentMessage->setMessageId($result['id']);
95+
96+
return $sentMessage;
9497
}
9598

9699
private function bodyFromMessageWithNoOption(MessageInterface $message): array

0 commit comments

Comments
 (0)