Skip to content

Commit

Permalink
Run message history backfill after creating all the rooms
Browse files Browse the repository at this point in the history
Possible workaround for issue as described here:
matrix-org/synapse#9424 (comment)
  • Loading branch information
Fizzadar committed Mar 15, 2022
1 parent 73241b6 commit 247faf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion historysync.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,10 @@ func (user *User) handleHistorySync(evt *waProto.HistorySync) {

var backfillWait sync.WaitGroup
backfillWait.Add(1)
go user.backfillLoop(portalsToBackfill, backfillWait.Done)
for _, conv := range conversations {
user.handleHistorySyncConversation(conv, portalsToBackfill)
}
go user.backfillLoop(portalsToBackfill, backfillWait.Done)
close(portalsToBackfill)
backfillWait.Wait()
user.log.Infoln("Finished handling history sync with", description)
Expand Down

0 comments on commit 247faf2

Please sign in to comment.