From 53dfb78215688bcc84a2f3721a995c061544ce5e Mon Sep 17 00:00:00 2001 From: Wim Date: Fri, 14 Jun 2019 00:24:42 +0200 Subject: Allow messages with timestamp (xmpp). Fixes #835 (#847) --- bridge/xmpp/xmpp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } -- cgit v1.2.3