summaryrefslogtreecommitdiffstats
path: root/bridge/xmpp
diff options
context:
space:
mode:
authorWim <wim@42.be>2019-06-14 00:44:31 +0200
committerWim <wim@42.be>2019-06-14 00:44:31 +0200
commit6e8f535e8b60697606dbec78340a955642c7f0a4 (patch)
treebb42fbb7336fbd0af3a9e1e0cc893cc78a9e2a7d /bridge/xmpp
parent5619a75b05f932bd45c8eb7b32b6db5d1dbfaf93 (diff)
downloadmatterbridge-msglm-6e8f535e8b60697606dbec78340a955642c7f0a4.tar.gz
matterbridge-msglm-6e8f535e8b60697606dbec78340a955642c7f0a4.tar.bz2
matterbridge-msglm-6e8f535e8b60697606dbec78340a955642c7f0a4.zip
Fix logic (xmpp)
Diffstat (limited to 'bridge/xmpp')
-rw-r--r--bridge/xmpp/xmpp.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/bridge/xmpp/xmpp.go b/bridge/xmpp/xmpp.go
index 586ef183..8257b7de 100644
--- a/bridge/xmpp/xmpp.go
+++ b/bridge/xmpp/xmpp.go
@@ -332,5 +332,5 @@ func (b *Bxmpp) skipMessage(message xmpp.Chat) bool {
}
// skip delayed messages
- return !message.Stamp.IsZero() || time.Since(message.Stamp).Minutes() > 5
+ return !message.Stamp.IsZero() && time.Since(message.Stamp).Minutes() > 5
}