Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

default action non empty check #149

Closed
wants to merge 1 commit into from
Closed

Conversation

pulkit8
Copy link
Contributor

@pulkit8 pulkit8 commented Jun 24, 2018

Check for non empty default action to fix structured message generic and list issue

Check for non empty default action to fix structured message generic and list issue
'item_url' => $this->url,
'image_url' => $this->image_url,
];
}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$result = [
    'title' => $this->title,
    'subtitle' => $this->subtitle,
    'item_url' => $this->url,
    'image_url' => $this->image_url,
];

if (!empty($default_action)) {
    $result['default_action'] = $this->default_action;
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wolzogens code is cleaner. Any pull request for this?

@wittfabian
Copy link
Contributor

@pulkit8 Check the comment!

@yourchoice
Copy link

Take a look here: #147 (comment)

Maybe is better to init from __construct with null

@pulkit8 pulkit8 closed this Jun 26, 2018
@pulkit8 pulkit8 reopened this Jun 26, 2018
@pulkit8
Copy link
Contributor Author

pulkit8 commented Jun 26, 2018

Another pull request merged for this file (#150 ). Closing this duplicate.

@pulkit8 pulkit8 closed this Jun 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants