mirror of
https://github.com/cwinfo/matterbridge.git
synced 2024-11-25 23:41:35 +00:00
Fix regression in skip logic (slack). (#592)
This commit is contained in:
parent
85564a35fd
commit
4254ed3c63
@ -132,7 +132,12 @@ func (b *Bslack) skipMessageEvent(ev *slack.MessageEvent) bool {
|
|||||||
ev.SubMessage.Edited == nil {
|
ev.SubMessage.Edited == nil {
|
||||||
return true
|
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 {
|
func (b *Bslack) filesCached(files []slack.File) bool {
|
||||||
|
Loading…
Reference in New Issue
Block a user