Thumbnail

rani/matterbridge.git

Clone URL: https://git.buni.party/rani/matterbridge.git

commit 577c7fc04e3f1e0ce81bb6b0db50d6c5a0252487 Author: Wim <wim@42.be> Date: Tue Mar 06 21:30:59 2018 +0000 Fix regression on empty text with files attached diff --git a/gateway/gateway.go b/gateway/gateway.go index 5582665..d6744cf 100644 --- a/gateway/gateway.go +++ b/gateway/gateway.go @@ -2047 +2047 @@ 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   }