summaryrefslogtreecommitdiffstats
path: root/bridge/slack/handlers.go
diff options
context:
space:
mode:
authorDuco van Amstel <duco.vanamstel@gmail.com>2018-11-08 19:07:21 +0000
committerWim <wim@42.be>2018-11-08 20:07:21 +0100
commitea86849a5855e58fd4633117416a21fde753751f (patch)
treef244438e4689064370b0405202f4dd321906c725 /bridge/slack/handlers.go
parent399789811ecab11f7dfb775f83d063b20167bb1d (diff)
downloadmatterbridge-msglm-ea86849a5855e58fd4633117416a21fde753751f.tar.gz
matterbridge-msglm-ea86849a5855e58fd4633117416a21fde753751f.tar.bz2
matterbridge-msglm-ea86849a5855e58fd4633117416a21fde753751f.zip
Fix Slack edit usernames (#570)
Diffstat (limited to 'bridge/slack/handlers.go')
-rw-r--r--bridge/slack/handlers.go10
1 files changed, 0 insertions, 10 deletions
diff --git a/bridge/slack/handlers.go b/bridge/slack/handlers.go
index 9bcafde6..4307e7b9 100644
--- a/bridge/slack/handlers.go
+++ b/bridge/slack/handlers.go
@@ -150,16 +150,6 @@ func (b *Bslack) handleMessageEvent(ev *slack.MessageEvent) (*config.Message, er
return rmsg, nil
}
- // Handle 'edit' messages.
- if ev.SubMessage != nil && !b.GetBool(editDisableConfig) {
- rmsg.ID = "slack " + ev.SubMessage.Timestamp
- if ev.SubMessage.ThreadTimestamp != ev.SubMessage.Timestamp {
- b.Log.Debugf("SubMessage %#v", ev.SubMessage)
- rmsg.Username = ev.SubMessage.User
- rmsg.Text = ev.SubMessage.Text + b.GetString(editSuffixConfig)
- }
- }
-
b.handleAttachments(ev, rmsg)
// Verify that we have the right information and the message