瀏覽代碼

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)