mirror of
https://github.com/42wim/matterbridge.git
synced 2024-11-21 18:22:00 -08:00
Allow empty messages with file urls (irc)
This commit is contained in:
parent
ba928b169d
commit
82396e73f5
@ -178,6 +178,7 @@ func (gw *Gateway) handleMessage(msg config.Message, dest *bridge.Bridge) []*BrM
|
|||||||
dest.Protocol != "telegram" &&
|
dest.Protocol != "telegram" &&
|
||||||
dest.Protocol != "matrix" &&
|
dest.Protocol != "matrix" &&
|
||||||
dest.Protocol != "xmpp" &&
|
dest.Protocol != "xmpp" &&
|
||||||
|
dest.Protocol != "irc" &&
|
||||||
len(msg.Extra[config.EVENT_FILE_FAILURE_SIZE]) == 0 {
|
len(msg.Extra[config.EVENT_FILE_FAILURE_SIZE]) == 0 {
|
||||||
if msg.Text == "" {
|
if msg.Text == "" {
|
||||||
return brMsgIDs
|
return brMsgIDs
|
||||||
@ -241,7 +242,7 @@ func (gw *Gateway) handleMessage(msg config.Message, dest *bridge.Bridge) []*BrM
|
|||||||
}
|
}
|
||||||
mID, err := dest.Send(msg)
|
mID, err := dest.Send(msg)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Println(err)
|
flog.Error(err)
|
||||||
}
|
}
|
||||||
// append the message ID (mID) from this bridge (dest) to our brMsgIDs slice
|
// append the message ID (mID) from this bridge (dest) to our brMsgIDs slice
|
||||||
if mID != "" {
|
if mID != "" {
|
||||||
|
Loading…
Reference in New Issue
Block a user