Skip to content

Make state in block_actions payload optional#281

Merged
omotnyk merged 1 commit intomasterfrom
make_state_payload_optional
Apr 6, 2022
Merged

Make state in block_actions payload optional#281
omotnyk merged 1 commit intomasterfrom
make_state_payload_optional

Conversation

@omotnyk
Copy link
Copy Markdown
Contributor

@omotnyk omotnyk commented Apr 6, 2022

As per Slack documentation it sends either state.values or view.state.values so both of these fields should be Optional so we don't fail do parse the payload if one of them is missing.

view.state.values is sent on interactions with blocks inside of modal.
state.values is sent on the interactions with blocks inside of the message.

@IvanivOleg
Copy link
Copy Markdown
Contributor

@omotnyk good catch 🚀

@omotnyk omotnyk merged commit f7d92f4 into master Apr 6, 2022
@omotnyk omotnyk deleted the make_state_payload_optional branch April 6, 2022 11:17
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.

2 participants