Don't try to do periodic sync on status broadcast chat

This commit is contained in:
Tulir Asokan 2022-07-11 19:47:10 +03:00
parent 574d6f47c3
commit 35ed840a36

View file

@ -264,7 +264,7 @@ func (user *User) EnqueuePuppetResync(puppet *Puppet) {
}
func (user *User) EnqueuePortalResync(portal *Portal) {
if portal.IsPrivateChat() || portal.LastSync.Add(resyncMinInterval).After(time.Now()) {
if !portal.IsGroupChat() || portal.LastSync.Add(resyncMinInterval).After(time.Now()) {
return
}
user.resyncQueueLock.Lock()