fixed double message on slack thread
This commit is contained in:
parent
5b1f11aaf6
commit
3b5d04956e
1 changed files with 0 additions and 4 deletions
|
|
@ -130,10 +130,6 @@ func (c *SlackChannel) Send(ctx context.Context, msg bus.OutboundMessage) error
|
|||
opts = append(opts, slack.MsgOptionTS(threadTS))
|
||||
}
|
||||
|
||||
if threadTS != "" {
|
||||
opts = append(opts, slack.MsgOptionTS(threadTS))
|
||||
}
|
||||
|
||||
_, _, err := c.api.PostMessageContext(ctx, channelID, opts...)
|
||||
if err != nil {
|
||||
return fmt.Errorf("slack send: %w", channels.ErrTemporary)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue