소스 검색

Ignore @lid chats in history syncs

Tulir Asokan 2 년 전
부모
커밋
5892169dd0
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      historysync.go

+ 3 - 0
historysync.go

@@ -430,6 +430,9 @@ func (user *User) storeHistorySync(evt *waProto.HistorySync) {
 		} else if jid.Server == types.BroadcastServer {
 			log.Debug().Str("chat_jid", jid.String()).Msg("Skipping broadcast list in history sync")
 			continue
+		} else if jid.Server == types.HiddenUserServer {
+			log.Debug().Str("chat_jid", jid.String()).Msg("Skipping hidden user JID chat in history sync")
+			continue
 		}
 		totalMessageCount += len(conv.GetMessages())
 		portal := user.GetPortalByJID(jid)