mirror of
https://github.com/cwinfo/matterbridge.git
synced 2024-11-22 01:10:27 +00:00
Fix regression on empty text with files attached
This commit is contained in:
parent
a284a228a3
commit
9e5da2f9d7
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user