5
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2024-12-24 18:25:40 +00:00

Allow messages with timestamp (xmpp). Fixes #835 (#847)

This commit is contained in:
Wim 2019-06-14 00:24:42 +02:00 committed by GitHub
parent 8e97cbab1e
commit 53dfb78215
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
}