From 5892169dd07c4b803d336fc07a0e332cf30f2178 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Mon, 19 Jun 2023 21:06:35 +0300 Subject: [PATCH] Ignore @lid chats in history syncs --- historysync.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/historysync.go b/historysync.go index f7d9e2a..ec9369c 100644 --- a/historysync.go +++ b/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)