Use own slack fork to fix #937 (#943)

This commit is contained in:
Wim
2019-11-14 00:04:39 +01:00
committed by GitHub
parent ed5386c213
commit aba86855b5
7 changed files with 37 additions and 4 deletions

View File

@@ -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)