mirror of
https://github.com/42wim/matterbridge.git
synced 2024-12-23 03:32:37 +01:00
Fix logic (xmpp)
This commit is contained in:
parent
5619a75b05
commit
6e8f535e8b
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user