Skip to content
This repository has been archived by the owner on Nov 25, 2024. It is now read-only.

Commit

Permalink
Get all account data on CompleteSync
Browse files Browse the repository at this point in the history
  • Loading branch information
S7evinK committed May 24, 2022
1 parent b5a497a commit 44a3e56
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion syncapi/streams/stream_accountdata.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package streams

import (
"context"
"math"

"github.com/matrix-org/dendrite/syncapi/types"
userapi "github.com/matrix-org/dendrite/userapi/api"
Expand Down Expand Up @@ -30,7 +31,7 @@ func (p *AccountDataStreamProvider) CompleteSync(
ctx context.Context,
req *types.SyncRequest,
) types.StreamPosition {
return p.IncrementalSync(ctx, req, 0, p.LatestPosition(ctx))
return p.IncrementalSync(ctx, req, 0, math.MaxInt64)
}

func (p *AccountDataStreamProvider) IncrementalSync(
Expand Down

0 comments on commit 44a3e56

Please sign in to comment.