From 24c859bc6f8297c8004674fff36669aca77df71b Mon Sep 17 00:00:00 2001 From: Will Nilges Date: Mon, 18 Dec 2023 21:20:58 -0500 Subject: [PATCH] Delete commented code --- slack.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/slack.go b/slack.go index f74d4a5..a498fdb 100644 --- a/slack.go +++ b/slack.go @@ -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)