From ea86849a5855e58fd4633117416a21fde753751f Mon Sep 17 00:00:00 2001 From: Duco van Amstel Date: Thu, 8 Nov 2018 19:07:21 +0000 Subject: Fix Slack edit usernames (#570) --- bridge/slack/handlers.go | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'bridge/slack/handlers.go') 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 -- cgit v1.2.3