Closed nathanaelhoun closed 2 years ago
Hello @nathanaelhoun,
Thanks for your pull request! A Core Committer will review your pull request soon. For code contributions, you can learn more about the review process here.
This PR has been automatically labelled "stale" because it hasn't had recent activity. A core team member will check in on the status of the PR to help with questions. Thank you for your contribution!
/cc @jasonblais @jfrerich @emilyacook
@nathanaelhoun can you pls explain me How to set the fromWebhook true?
can you pls explain me How to set the
fromWebhook true?
Hi @dipak-demansol, this property will be passed by the webapp once https://github.com/mattermost/mattermost-webapp/pull/9070 will get merged. I haven't found another reliable way for the plugin-side to detect if the post is from a webhook or not.
@nathanaelhoun One final question before merging this change: If these changes are run against a server who doesn't have the require webapp change, is the plugin still functional?
@hanzei Yes it is! As stated in the PR description, if the server doesn't have the changes, the plugin gracefully degrade as fromWebhook
will be undefined
(therefore falsy), and the plugin will behave like before.
Summary
true
. This is a new attribute proposed in https://github.com/mattermost/mattermost-webapp/pull/9070fromWebhook
will beundefined
therefore falsy, and the plugin will behave like before.Ticket Link
Fixes #37