From 849e40d45653d3d42bbddf2d58d6d5f488cebdba Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Tue, 1 Mar 2022 17:25:26 +0000 Subject: [PATCH] Use correct stream provider in `Latest` for `ReceiptPosition` --- syncapi/streams/streams.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syncapi/streams/streams.go b/syncapi/streams/streams.go index 6b02c75ea..c71095af6 100644 --- a/syncapi/streams/streams.go +++ b/syncapi/streams/streams.go @@ -69,7 +69,7 @@ func (s *Streams) Latest(ctx context.Context) types.StreamingToken { return types.StreamingToken{ PDUPosition: s.PDUStreamProvider.LatestPosition(ctx), TypingPosition: s.TypingStreamProvider.LatestPosition(ctx), - ReceiptPosition: s.PDUStreamProvider.LatestPosition(ctx), + ReceiptPosition: s.ReceiptStreamProvider.LatestPosition(ctx), InvitePosition: s.InviteStreamProvider.LatestPosition(ctx), SendToDevicePosition: s.SendToDeviceStreamProvider.LatestPosition(ctx), AccountDataPosition: s.AccountDataStreamProvider.LatestPosition(ctx),