summaryrefslogtreecommitdiffstats
path: root/gateway
diff options
context:
space:
mode:
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 7c1f3bd9..663c3871 100644
--- a/gateway/gateway.go
+++ b/gateway/gateway.go
@@ -211,7 +211,7 @@ func (gw *Gateway) ignoreMessage(msg *config.Message) bool {
}
if msg.Text == "" {
// we have an attachment
- if msg.Extra != nil {
+ if msg.Extra != nil && msg.Extra["attachments"] != nil {
return false
}
log.Debugf("ignoring empty message %#v from %s", msg, msg.Account)