diff options
author | Wim <wim@42.be> | 2019-06-14 00:24:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-14 00:24:42 +0200 |
commit | 53dfb78215688bcc84a2f3721a995c061544ce5e (patch) | |
tree | 69d90fcb7ad456a3138bd5ec28bce8fc595df058 /bridge/xmpp/xmpp.go | |
parent | 8e97cbab1e74ef0e665c5ddc90e3eb536683c833 (diff) | |
download | matterbridge-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/xmpp/xmpp.go')
-rw-r--r-- | bridge/xmpp/xmpp.go | 2 |
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 } |