diff options
author | Patrick Connolly <patrick.c.connolly@gmail.com> | 2018-11-16 02:23:46 +0800 |
---|---|---|
committer | Wim <wim@42.be> | 2018-11-15 19:23:46 +0100 |
commit | 4254ed3c638d0378d71c49918f241582ea30dc97 (patch) | |
tree | 1dc13591295b38d8ccad2bb55b5949206882af10 | |
parent | 85564a35fd507fca986065c38262a71764ed41a7 (diff) | |
download | matterbridge-msglm-4254ed3c638d0378d71c49918f241582ea30dc97.tar.gz matterbridge-msglm-4254ed3c638d0378d71c49918f241582ea30dc97.tar.bz2 matterbridge-msglm-4254ed3c638d0378d71c49918f241582ea30dc97.zip |
Fix regression in skip logic (slack). (#592)
-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 { |