mirror of
https://github.com/matrix-org/dendrite
synced 2024-06-13 09:58:59 +02:00
Add RoomsWithACLs to the RS API
This commit is contained in:
parent
dca4af75f1
commit
0ff2a948c1
|
@ -86,6 +86,9 @@ type RoomserverInternalAPI interface {
|
|||
req *QueryAuthChainRequest,
|
||||
res *QueryAuthChainResponse,
|
||||
) error
|
||||
|
||||
// RoomsWithACLs returns all room IDs for rooms with ACLs
|
||||
RoomsWithACLs(ctx context.Context) ([]string, error)
|
||||
}
|
||||
|
||||
type UserRoomPrivateKeyCreator interface {
|
||||
|
|
|
@ -1099,3 +1099,8 @@ func (r *Queryer) QueryUserIDForSender(ctx context.Context, roomID spec.RoomID,
|
|||
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
// RoomsWithACLs returns all room IDs for rooms with ACLs
|
||||
func (r *Queryer) RoomsWithACLs(ctx context.Context) ([]string, error) {
|
||||
return r.DB.RoomsWithACLs(ctx)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue