Skip to content

Commit

Permalink
Fix Menu bug on RTM driver
Browse files Browse the repository at this point in the history
  • Loading branch information
mpociot committed Oct 4, 2017
1 parent d3b08b6 commit d9e938b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/SlackRTMDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,10 @@ private function convertQuestion(Question $question)
$questionData = $question->toArray();

$buttons = Collection::make($question->getButtons())->map(function ($button) {
if ($button['type'] === 'select') {
return $button;
}

return array_merge([
'name' => $button['name'],
'text' => $button['text'],
Expand Down

0 comments on commit d9e938b

Please sign in to comment.