Fix bug where hishtory import wouldn't upload entries and thus those entries would be forever on the local device only

This commit is contained in:
David Dworken 2022-10-09 17:19:15 -07:00
parent 9bfd4bf173
commit 20af97c2d2

View File

@ -442,6 +442,10 @@ func ImportHistory(ctx *context.Context) (int, error) {
return 0, fmt.Errorf("failed to insert imported history entry: %v", err)
}
}
err = Reupload(ctx)
if err != nil {
return 0, fmt.Errorf("failed to upload hishtory import: %v", err)
}
config.HaveCompletedInitialImport = true
err = hctx.SetConfig(config)
if err != nil {