From 4254ed3c638d0378d71c49918f241582ea30dc97 Mon Sep 17 00:00:00 2001 From: Patrick Connolly Date: Fri, 16 Nov 2018 02:23:46 +0800 Subject: Fix regression in skip logic (slack). (#592) --- bridge/slack/handlers.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'bridge/slack') diff --git a/bridge/slack/handlers.go b/bridge/slack/handlers.go index 17249bda..ef7364f6 100644 --- a/bridge/slack/handlers.go +++ b/bridge/slack/handlers.go @@ -132,7 +132,12 @@ func (b *Bslack) skipMessageEvent(ev *slack.MessageEvent) bool { ev.SubMessage.Edited == nil { return true } - return b.filesCached(ev.Files) + + if len(ev.Files) > 0 { + return b.filesCached(ev.Files) + } + + return false } func (b *Bslack) filesCached(files []slack.File) bool { -- cgit v1.2.3