forked from MirrorHub/mautrix-whatsapp
Don't try to do periodic sync on status broadcast chat
This commit is contained in:
parent
574d6f47c3
commit
35ed840a36
1 changed files with 1 additions and 1 deletions
2
user.go
2
user.go
|
@ -264,7 +264,7 @@ func (user *User) EnqueuePuppetResync(puppet *Puppet) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (user *User) EnqueuePortalResync(portal *Portal) {
|
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
|
return
|
||||||
}
|
}
|
||||||
user.resyncQueueLock.Lock()
|
user.resyncQueueLock.Lock()
|
||||||
|
|
Loading…
Reference in a new issue