Skip to content

Commit

Permalink
Fix sending legacy backfill
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Mar 19, 2024
1 parent fc1de15 commit 4f321eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backfill.go
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ func (portal *Portal) convertAndSendBackfill(ctx context.Context, source *User,
func (portal *Portal) sendBackfillLegacy(ctx context.Context, source *User, events []*event.Event, metas []*BackfillPartMetadata, markRead bool) {
var lastEventID id.EventID
for i, evt := range events {
resp, err := portal.sendMatrixEvent(ctx, metas[i].Intent, evt.Type, evt.Content.Parsed, evt.Content.Raw, evt.Timestamp)
resp, err := metas[i].Intent.SendMassagedMessageEvent(ctx, portal.MXID, evt.Type, &evt.Content, evt.Timestamp)
if err != nil {
zerolog.Ctx(ctx).Err(err).Int("evt_index", i).Msg("Failed to send event")
} else {
Expand Down

0 comments on commit 4f321eb

Please sign in to comment.