mirror of
https://github.com/42wim/matterbridge.git
synced 2024-05-06 15:54:56 +00:00
Fix regression on empty text with files attached
This commit is contained in:
@ -204,7 +204,7 @@ func (gw *Gateway) handleMessage(msg config.Message, dest *bridge.Bridge) []*BrM
|
||||
|
||||
// if we have an attached file, or other info
|
||||
if msg.Extra != nil {
|
||||
if len(msg.Extra[config.EVENT_FILE_FAILURE_SIZE]) == 0 {
|
||||
if len(msg.Extra[config.EVENT_FILE_FAILURE_SIZE]) != 0 {
|
||||
if msg.Text == "" {
|
||||
return brMsgIDs
|
||||
}
|
||||
|
Reference in New Issue
Block a user