summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/nlopes/slack/block_conv.go
diff options
context:
space:
mode:
authorWim <wim@42.be>2019-11-14 00:04:39 +0100
committerGitHub <noreply@github.com>2019-11-14 00:04:39 +0100
commitaba86855b5f71c9809d892a7eebc6b69872fcd5b (patch)
treed9228a7b2b8e4a047b848f4d75b5a1f6b1e93cd9 /vendor/github.com/nlopes/slack/block_conv.go
parented5386c213e5c41164c7dba80bb8e6fe7f6dc7d7 (diff)
downloadmatterbridge-msglm-aba86855b5f71c9809d892a7eebc6b69872fcd5b.tar.gz
matterbridge-msglm-aba86855b5f71c9809d892a7eebc6b69872fcd5b.tar.bz2
matterbridge-msglm-aba86855b5f71c9809d892a7eebc6b69872fcd5b.zip
Use own slack fork to fix #937 (#943)
Diffstat (limited to 'vendor/github.com/nlopes/slack/block_conv.go')
-rw-r--r--vendor/github.com/nlopes/slack/block_conv.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/vendor/github.com/nlopes/slack/block_conv.go b/vendor/github.com/nlopes/slack/block_conv.go
index 619867ea..b9e61a95 100644
--- a/vendor/github.com/nlopes/slack/block_conv.go
+++ b/vendor/github.com/nlopes/slack/block_conv.go
@@ -61,7 +61,7 @@ func (b *Blocks) UnmarshalJSON(data []byte) error {
case "section":
block = &SectionBlock{}
default:
- return errors.New("unsupported block type")
+ block = &UnknownBlock{}
}
err = json.Unmarshal(r, block)
@@ -127,7 +127,7 @@ func (b *BlockElements) UnmarshalJSON(data []byte) error {
case "static_select", "external_select", "users_select", "conversations_select", "channels_select":
blockElement = &SelectBlockElement{}
default:
- return errors.New("unsupported block element type")
+ blockElement = &UnknownBlockElement{}
}
err = json.Unmarshal(r, blockElement)