Skip to content

Commit

Permalink
fix: If set attachment id reusable unnecessary
Browse files Browse the repository at this point in the history
  • Loading branch information
CasperLaiTW committed Jan 31, 2017
1 parent 526402a commit 23b6343
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Contracts/Messages/Attachment.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public function disableReuse()
public function setAttachmentId($id)
{
$this->payload['attachment_id'] = $id;
unset($this->payload['url']);
unset($this->payload['url'], $this->payload['is_reusable']);

return $this;
}
Expand Down

0 comments on commit 23b6343

Please sign in to comment.