mirror of
https://github.com/42wim/matterbridge.git
synced 2025-02-06 13:59:03 -08:00
Let handleEventWebhook handle webhook message deletions
This commit is contained in:
parent
103b33f77d
commit
b321268499
@ -278,7 +278,7 @@ func (b *Bdiscord) Send(msg config.Message) (string, error) {
|
||||
|
||||
// Use webhook to send the message
|
||||
useWebhooks := b.shouldMessageUseWebhooks(&msg)
|
||||
if useWebhooks && msg.Event != config.EventMsgDelete && msg.ParentID == "" {
|
||||
if useWebhooks && msg.ParentID == "" {
|
||||
return b.handleEventWebhook(&msg, channelID)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user