mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-26 00:03:09 -06:00
Fix complete sync for receipt, typing
This commit is contained in:
parent
3843d076bc
commit
98707e1554
|
|
@ -28,7 +28,7 @@ func (p *ReceiptStreamProvider) CompleteSync(
|
||||||
ctx context.Context,
|
ctx context.Context,
|
||||||
req *types.SyncRequest,
|
req *types.SyncRequest,
|
||||||
) types.StreamPosition {
|
) types.StreamPosition {
|
||||||
return p.LatestPosition(ctx)
|
return p.IncrementalSync(ctx, req, 0, p.LatestPosition(ctx))
|
||||||
}
|
}
|
||||||
|
|
||||||
func (p *ReceiptStreamProvider) IncrementalSync(
|
func (p *ReceiptStreamProvider) IncrementalSync(
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ func (p *TypingStreamProvider) CompleteSync(
|
||||||
// It isn't beneficial to send previous typing notifications
|
// It isn't beneficial to send previous typing notifications
|
||||||
// after a complete sync, so just return the latest position
|
// after a complete sync, so just return the latest position
|
||||||
// and otherwise do nothing.
|
// and otherwise do nothing.
|
||||||
return p.LatestPosition(ctx)
|
return p.IncrementalSync(ctx, req, 0, p.LatestPosition(ctx))
|
||||||
}
|
}
|
||||||
|
|
||||||
func (p *TypingStreamProvider) IncrementalSync(
|
func (p *TypingStreamProvider) IncrementalSync(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue