diff options
author | Wim <wim@42.be> | 2018-11-25 11:08:57 +0100 |
---|---|---|
committer | Duco van Amstel <duco.vanamstel@gmail.com> | 2018-11-25 10:08:57 +0000 |
commit | 8869e253cad84f504c5b90bfe9256ca8fb4e815c (patch) | |
tree | d6f8c03415674e422a08c48573eaea0a30815f9e /bridge/slack/handlers.go | |
parent | f3a5ea29564201fe89deda7b779ae840a84c9395 (diff) | |
download | matterbridge-msglm-8869e253cad84f504c5b90bfe9256ca8fb4e815c.tar.gz matterbridge-msglm-8869e253cad84f504c5b90bfe9256ca8fb4e815c.tar.bz2 matterbridge-msglm-8869e253cad84f504c5b90bfe9256ca8fb4e815c.zip |
Handle deleted/edited thread starting messages (slack). Fixes #600 (#605)
Diffstat (limited to 'bridge/slack/handlers.go')
-rw-r--r-- | bridge/slack/handlers.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bridge/slack/handlers.go b/bridge/slack/handlers.go index a3291c38..035c5af5 100644 --- a/bridge/slack/handlers.go +++ b/bridge/slack/handlers.go @@ -202,6 +202,13 @@ func (b *Bslack) handleStatusEvent(ev *slack.MessageEvent, rmsg *config.Message) rmsg.Event = config.EventJoinLeave case sChannelTopic, sChannelPurpose: rmsg.Event = config.EventTopicChange + case sMessageChanged: + rmsg.Text = ev.SubMessage.Text + // handle deleted thread starting messages + if ev.SubMessage.Text == "This message was deleted." { + rmsg.Event = config.EventMsgDelete + return true + } case sMessageDeleted: rmsg.Text = config.EventMsgDelete rmsg.Event = config.EventMsgDelete |