From 67f625761785bdd1daf7101668f4853adacdd694 Mon Sep 17 00:00:00 2001 From: Wim Date: Fri, 2 Feb 2018 21:04:43 +0100 Subject: Add ShowTopicChange option. Allow/disable topic change messages (currently only from slack). Closes #353 --- bridge/slack/slack.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'bridge/slack') diff --git a/bridge/slack/slack.go b/bridge/slack/slack.go index 421cc6a3..f7001568 100644 --- a/bridge/slack/slack.go +++ b/bridge/slack/slack.go @@ -284,6 +284,9 @@ func (b *Bslack) handleSlack() { msg.Event = config.EVENT_MSG_DELETE msg.ID = "slack " + message.Raw.DeletedTimestamp } + if message.Raw.SubType == "channel_topic" { + msg.Event = config.EVENT_TOPIC_CHANGE + } // if we have a file attached, download it (in memory) and put a pointer to it in msg.Extra if message.Raw.File != nil { -- cgit v1.2.3