Implement archived rooms (include_leave filter on /sync)

Fix https://github.com/matrix-org/dendrite/issues/1323
This commit is contained in:
Eric Eastwood 2020-12-22 22:31:01 -06:00
parent e3ce6a924f
commit 82afb32464
6 changed files with 24 additions and 7 deletions

View file

@ -762,6 +762,7 @@ func (d *Database) getResponseWithPDUsForCompleteSync(
ctx context.Context, res *types.Response,
userID string, device userapi.Device,
numRecentEventsPerRoom int,
includeLeave bool,
) (
toPos types.StreamingToken,
joinedRoomIDs []string,
@ -811,6 +812,9 @@ func (d *Database) getResponseWithPDUsForCompleteSync(
if err != nil {
return
}
// TODO: Add "leave" rooms.
res.Rooms.Join[roomID] = *jr
}