summaryrefslogtreecommitdiffstats
path: root/bridge
diff options
context:
space:
mode:
authorWim <wim@42.be>2019-06-14 00:24:42 +0200
committerGitHub <noreply@github.com>2019-06-14 00:24:42 +0200
commit53dfb78215688bcc84a2f3721a995c061544ce5e (patch)
tree69d90fcb7ad456a3138bd5ec28bce8fc595df058 /bridge
parent8e97cbab1e74ef0e665c5ddc90e3eb536683c833 (diff)
downloadmatterbridge-msglm-53dfb78215688bcc84a2f3721a995c061544ce5e.tar.gz
matterbridge-msglm-53dfb78215688bcc84a2f3721a995c061544ce5e.tar.bz2
matterbridge-msglm-53dfb78215688bcc84a2f3721a995c061544ce5e.zip
Allow messages with timestamp (xmpp). Fixes #835 (#847)
Diffstat (limited to 'bridge')
-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 c5d5e185..586ef183 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()
+ return !message.Stamp.IsZero() || time.Since(message.Stamp).Minutes() > 5
}