Skip to content

Commit

Permalink
Delete commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
WillNilges committed Dec 19, 2023
1 parent 3ba2898 commit 24c859b
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions slack.go
Original file line number Diff line number Diff line change
Expand Up @@ -261,12 +261,6 @@ func (h *CSPSlackEvtHandler) handleEventAPIEvent() {
return
}
blocks := CreateUpdateResponseMsg(channelName, ev.User)
//FIXME (willnilges): Seems like slack has some kind of limitation with being unable to post ephemeral messages to threads and then
// broadcast them to channels. So for now this is going to be non-ephemeral.

// Post the ephemeral message
//_, _, err := slackSocket.PostMessage(config.SlackStatusChannelID, slack.MsgOptionTS(ev.TimeStamp), slack.MsgOptionText("Hello!", false))
//_, err = slackSocket.PostEphemeral(config.SlackStatusChannelID, ev.User, slack.MsgOptionTS(ev.TimeStamp), slack.MsgOptionBroadcast(), slack.MsgOptionBlocks(blocks...))
_, _, err = h.slackSocket.PostMessage(config.SlackStatusChannelID, slack.MsgOptionTS(ev.TimeStamp), slack.MsgOptionBlocks(blocks...))
if err != nil {
log.Printf("Error posting ephemeral message: %s", err)
Expand Down

0 comments on commit 24c859b

Please sign in to comment.