summaryrefslogtreecommitdiffstats
path: root/bridge/slack/slack.go
diff options
context:
space:
mode:
Diffstat (limited to 'bridge/slack/slack.go')
-rw-r--r--bridge/slack/slack.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/bridge/slack/slack.go b/bridge/slack/slack.go
index 2022ebce..d2d118b2 100644
--- a/bridge/slack/slack.go
+++ b/bridge/slack/slack.go
@@ -310,6 +310,10 @@ func (b *Bslack) prepareMessageParameters(msg *config.Message) *slack.PostMessag
params.Username = msg.Username
params.LinkNames = 1 // replace mentions
params.IconURL = config.GetIconURL(msg, b.GetString(iconURLConfig))
+ msgFields := strings.Fields(msg.ParentID)
+ if len(msgFields) >= 2 {
+ params.ThreadTimestamp = msgFields[1]
+ }
if msg.Avatar != "" {
params.IconURL = msg.Avatar
}