diff options
Diffstat (limited to 'bridge/slack')
-rw-r--r-- | bridge/slack/handlers.go | 7 |
1 files changed, 6 insertions, 1 deletions
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 { |