From 452ff703740e9ed5f743299fd340ec7a2546f513 Mon Sep 17 00:00:00 2001 From: Alex Chen Date: Wed, 31 Jul 2019 20:39:06 +0800 Subject: [PATCH] Refine docs for getStateDeltas --- syncapi/storage/syncserver.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/syncapi/storage/syncserver.go b/syncapi/storage/syncserver.go index d764824c3..20fa8a4e0 100644 --- a/syncapi/storage/syncserver.go +++ b/syncapi/storage/syncserver.go @@ -720,8 +720,9 @@ func (d *SyncServerDatasource) fetchMissingStateEvents( return events, nil } -// getStateDeltas returns the state deltas between fromPos and toPos for the -// rooms in which the user has new membership events. +// getStateDeltas returns the state deltas between fromPos and toPos, +// exclusive of oldPos, inclusive of newPos, for the rooms in which +// the user has new membership events. // A list of joined room IDs is also returned in case the caller needs it. func (d *SyncServerDatasource) getStateDeltas( ctx context.Context, device *authtypes.Device, txn *sql.Tx,