5
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2024-11-22 12:50:27 +00:00

Fix regression on empty text with files attached

This commit is contained in:
Wim 2018-03-06 21:30:59 +01:00
parent a284a228a3
commit 9e5da2f9d7

View File

@ -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 we have an attached file, or other info
if msg.Extra != nil { 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 == "" { if msg.Text == "" {
return brMsgIDs return brMsgIDs
} }