mirror of
https://github.com/cwinfo/matterbridge.git
synced 2024-11-26 16:51:36 +00:00
Try to not forward slack unfurls. Closes #266
This commit is contained in:
parent
c088e45d85
commit
5f14141ec9
@ -287,6 +287,12 @@ func (b *Bslack) handleSlackClient(mchan chan *MMMessage) {
|
|||||||
flog.Debugf("SubMessage %#v", ev.SubMessage)
|
flog.Debugf("SubMessage %#v", ev.SubMessage)
|
||||||
ev.User = ev.SubMessage.User
|
ev.User = ev.SubMessage.User
|
||||||
ev.Text = ev.SubMessage.Text + b.Config.EditSuffix
|
ev.Text = ev.SubMessage.Text + b.Config.EditSuffix
|
||||||
|
|
||||||
|
// it seems ev.SubMessage.Edited == nil when slack unfurls
|
||||||
|
// do not forward these messages #266
|
||||||
|
if ev.SubMessage.Edited == nil {
|
||||||
|
continue
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// use our own func because rtm.GetChannelInfo doesn't work for private channels
|
// use our own func because rtm.GetChannelInfo doesn't work for private channels
|
||||||
channel, err := b.getChannelByID(ev.Channel)
|
channel, err := b.getChannelByID(ev.Channel)
|
||||||
|
Loading…
Reference in New Issue
Block a user