backfill: ignore edit messages

This commit is contained in:
Tulir Asokan 2024-10-11 14:21:22 +03:00
parent 548cc4a2cb
commit e36957bf14

View file

@ -127,7 +127,7 @@ func (wa *WhatsAppClient) handleWAHistorySync(ctx context.Context, evt *waHistor
}
msgType := getMessageType(msgEvt.Message)
if msgType == "ignore" || strings.HasPrefix(msgType, "unknown_protocol_") {
if msgType == "ignore" || msgType == "edit" || strings.HasPrefix(msgType, "unknown_protocol_") {
ignoredTypes++
continue
}