Fix regression in skip logic (slack). (#592)

This commit is contained in:
Patrick Connolly 2018-11-16 02:23:46 +08:00 committed by Wim
parent 85564a35fd
commit 4254ed3c63
1 changed files with 6 additions and 1 deletions

View File

@ -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 {