Add leave rooms to /sync response

This commit is contained in:
Eric Eastwood 2020-12-28 15:32:59 -06:00
parent 4cf73a5dc2
commit 88374a5cc4
4 changed files with 51 additions and 7 deletions

View file

@ -367,7 +367,7 @@ func newTestSyncRequest(userID, deviceID string, since types.StreamingToken) syn
timeout: 1 * time.Minute,
since: since,
wantFullState: false,
limit: DefaultTimelineLimit,
limit: gomatrixserverlib.DefaultRoomEventFilter().Limit,
log: util.GetLogger(context.TODO()),
ctx: context.TODO(),
}

View file

@ -31,7 +31,6 @@ import (
const defaultSyncTimeout = time.Duration(0)
const defaultIncludeLeave = false
const DefaultTimelineLimit = 20
// syncRequest represents a /sync request, with sensible defaults/sanity checks applied.
type syncRequest struct {