From f20db5635809800496df9d0d6f01cd74519d9f7c Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Fri, 10 Jan 2025 22:48:58 +0200 Subject: [PATCH] backfill: add stream order --- pkg/connector/backfill.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/connector/backfill.go b/pkg/connector/backfill.go index 1085b24d..663003a6 100644 --- a/pkg/connector/backfill.go +++ b/pkg/connector/backfill.go @@ -390,6 +390,7 @@ func (wa *WhatsAppClient) convertHistorySyncMessage( ID: waid.MakeMessageID(info.Chat, info.Sender, info.ID), TxnID: networkid.TransactionID(waid.MakeMessageID(info.Chat, info.Sender, info.ID)), Timestamp: info.Timestamp, + StreamOrder: info.Timestamp.Unix(), Reactions: make([]*bridgev2.BackfillReaction, len(reactions)), } mediaReq := wa.processFailedMedia(ctx, portal.PortalKey, wrapped.ID, wrapped.ConvertedMessage, true)