mirror of
https://github.com/42wim/matterbridge.git
synced 2024-12-18 09:02:39 +01: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