소스 검색

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

Tulir Asokan 3 년 전
부모
커밋
35ed840a36
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      user.go

+ 1 - 1
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()