summaryrefslogtreecommitdiffstats
path: root/gateway
diff options
context:
space:
mode:
authorWim <wim@42.be>2018-03-06 21:30:59 +0100
committerWim <wim@42.be>2018-03-06 21:30:59 +0100
commit9e5da2f9d7384f2d17ed3bc18bcca7b7c07e6252 (patch)
treee0bdf18e9a557f1f7485cbd66e5891ef760cd818 /gateway
parenta284a228a32185e6b7af7459a2d69eb14d6516d9 (diff)
downloadmatterbridge-msglm-9e5da2f9d7384f2d17ed3bc18bcca7b7c07e6252.tar.gz
matterbridge-msglm-9e5da2f9d7384f2d17ed3bc18bcca7b7c07e6252.tar.bz2
matterbridge-msglm-9e5da2f9d7384f2d17ed3bc18bcca7b7c07e6252.zip
Fix regression on empty text with files attached
Diffstat (limited to 'gateway')
-rw-r--r--gateway/gateway.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/gateway/gateway.go b/gateway/gateway.go
index 55826652..d6744cf7 100644
--- a/gateway/gateway.go
+++ b/gateway/gateway.go
@@ -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
}