Skip to content

Add subtype for conversations-select input#253

Merged
zmarushchak-hs merged 3 commits intomasterfrom
add-model
Nov 11, 2021
Merged

Add subtype for conversations-select input#253
zmarushchak-hs merged 3 commits intomasterfrom
add-model

Conversation

@zmarushchak-hs
Copy link
Copy Markdown
Contributor

Added fields for ConversationsSelectMenu model to receive channel id in the View Submission. Also added subtype of ViewInput type for the conversations-select input object unmarshalling.

Context: when the user selects the channel from Conversations list on the model, Slack sends are conversations-select object in the view submission state field (please see example below). In order to get the select channel, we need to have a corresponding model.

{
  "type": "view_submission",
    .
    .
    .
    "callback_id": "callbackId",
    "state": {
      "values": {
       .
       .
       .
        "cdA=j": {
          "conversation-select": {
            "type": "conversations_select",
            "selected_conversation": "CHANNELID"
          }
        }
      }
    },
    "hash": "hash",
    "title": {

Copy link
Copy Markdown
Contributor

@leonidhladii leonidhladii left a comment

Choose a reason for hiding this comment

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

LGTM 🚢

@zmarushchak-hs zmarushchak-hs merged commit 264fb25 into master Nov 11, 2021
@zmarushchak-hs zmarushchak-hs deleted the add-model branch November 11, 2021 08:34
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