Fix logic (xmpp)

This commit is contained in:
Wim 2019-06-14 00:44:31 +02:00
parent 5619a75b05
commit 6e8f535e8b

View File

@ -332,5 +332,5 @@ func (b *Bxmpp) skipMessage(message xmpp.Chat) bool {
} }
// skip delayed messages // skip delayed messages
return !message.Stamp.IsZero() || time.Since(message.Stamp).Minutes() > 5 return !message.Stamp.IsZero() && time.Since(message.Stamp).Minutes() > 5
} }