backfill: add stream order

This commit is contained in:
Tulir Asokan 2025-01-10 22:48:58 +02:00
parent c0df3872b1
commit f20db56358

View file

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