Skip to content

Commit

Permalink
Fix recipient error
Browse files Browse the repository at this point in the history
  • Loading branch information
mpociot committed Jan 30, 2018
1 parent e1e4f0e commit 9c3fc24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BotFrameworkDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ public function buildServicePayload($message, $matchingMessage, $additionalParam
/**
* Originated messages use the getSender method, otherwise getRecipient.
*/
$recipient = $matchingMessage->getSender() === '' ? $matchingMessage->getRecipient() : $matchingMessage->getSender();
$recipient = $matchingMessage->getRecipient() === '' ? $matchingMessage->getSender() : $matchingMessage->getRecipient();
$payload = is_null($matchingMessage->getPayload()) ? [] : $matchingMessage->getPayload()->all();
$this->apiURL = Collection::make($payload)->get('serviceUrl',
Collection::make($additionalParameters)->get('serviceUrl')).'/v3/conversations/'.urlencode($recipient).'/activities';
Expand Down

0 comments on commit 9c3fc24

Please sign in to comment.