From 9e5da2f9d7384f2d17ed3bc18bcca7b7c07e6252 Mon Sep 17 00:00:00 2001 From: Wim Date: Tue, 6 Mar 2018 21:30:59 +0100 Subject: Fix regression on empty text with files attached --- gateway/gateway.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gateway/gateway.go') 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 } -- cgit v1.2.3