Ignore @lid chats in history syncs

This commit is contained in:
Tulir Asokan 2023-06-19 21:06:35 +03:00
parent a57f4a67be
commit 5892169dd0

View file

@ -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)