mirror of
https://github.com/hoernschen/dendrite.git
synced 2025-08-03 06:32:47 +00:00
Implement archived rooms (include_leave filter on /sync)
Fix https://github.com/matrix-org/dendrite/issues/1323
This commit is contained in:
parent
e3ce6a924f
commit
82afb32464
6 changed files with 24 additions and 7 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue