mirror of
https://github.com/cwinfo/matterbridge.git
synced 2024-11-22 16:20:26 +00:00
parent
efd2c99862
commit
64b57f2da3
@ -130,13 +130,19 @@ func (b *Bslack) skipMessageEvent(ev *slack.MessageEvent) bool {
|
|||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ev.SubMessage != nil {
|
||||||
// It seems ev.SubMessage.Edited == nil when slack unfurls.
|
// It seems ev.SubMessage.Edited == nil when slack unfurls.
|
||||||
// Do not forward these messages. See Github issue #266.
|
// Do not forward these messages. See Github issue #266.
|
||||||
if ev.SubMessage != nil &&
|
if ev.SubMessage.ThreadTimestamp != ev.SubMessage.Timestamp &&
|
||||||
ev.SubMessage.ThreadTimestamp != ev.SubMessage.Timestamp &&
|
|
||||||
ev.SubMessage.Edited == nil {
|
ev.SubMessage.Edited == nil {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
// see hidden subtypes at https://api.slack.com/events/message
|
||||||
|
// these messages are sent when we add a message to a thread #709
|
||||||
|
if ev.SubType == "message_replied" && ev.Hidden {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if len(ev.Files) > 0 {
|
if len(ev.Files) > 0 {
|
||||||
return b.filesCached(ev.Files)
|
return b.filesCached(ev.Files)
|
||||||
|
Loading…
Reference in New Issue
Block a user