From 44a3e566d8fb940b0b757aea9b8408fa19ea9f54 Mon Sep 17 00:00:00 2001 From: Till Faelligen Date: Tue, 24 May 2022 09:09:51 +0200 Subject: [PATCH] Get all account data on CompleteSync --- syncapi/streams/stream_accountdata.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/syncapi/streams/stream_accountdata.go b/syncapi/streams/stream_accountdata.go index 9c19b846b..34aef8c73 100644 --- a/syncapi/streams/stream_accountdata.go +++ b/syncapi/streams/stream_accountdata.go @@ -2,6 +2,7 @@ package streams import ( "context" + "math" "github.com/matrix-org/dendrite/syncapi/types" userapi "github.com/matrix-org/dendrite/userapi/api" @@ -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(