backfill status event: send first expected timestamp in ms after epoch instead of seconds

This commit is contained in:
Sumner Evans 2022-05-25 08:39:08 -06:00
parent 03d46630c2
commit 0939bb3bc3
No known key found for this signature in database
GPG key ID: 8904527AB50022FD

View file

@ -734,7 +734,7 @@ func (portal *Portal) updateBackfillStatus(backfillState *database.BackfillState
_, err := portal.MainIntent().SendStateEvent(portal.MXID, BackfillStatusEvent, "", map[string]interface{}{ _, err := portal.MainIntent().SendStateEvent(portal.MXID, BackfillStatusEvent, "", map[string]interface{}{
"status": backfillStatus, "status": backfillStatus,
"first_timestamp": backfillState.FirstExpectedTimestamp, "first_timestamp": backfillState.FirstExpectedTimestamp * 1000,
}) })
if err != nil { if err != nil {
portal.log.Errorln("Error sending backfill status event:", err) portal.log.Errorln("Error sending backfill status event:", err)