Copy and simplify GetBulkStateContent for ACLs

This commit is contained in:
Till Faelligen 2024-12-19 20:06:39 +01:00
parent e0b153930c
commit e2fd591d9f
No known key found for this signature in database
GPG key ID: 3DF82D8AB9211D4E
4 changed files with 65 additions and 9 deletions

View file

@ -187,6 +187,8 @@ type Database interface {
// RoomsWithACLs returns all room IDs for rooms with ACLs
RoomsWithACLs(ctx context.Context) ([]string, error)
// GetBulkStateACLs returns all server ACLs for the given rooms.
GetBulkStateACLs(ctx context.Context, roomIDs []string) ([]tables.StrippedEvent, error)
QueryAdminEventReports(ctx context.Context, from uint64, limit uint64, backwards bool, userID string, roomID string) ([]api.QueryAdminEventReportsResponse, int64, error)
QueryAdminEventReport(ctx context.Context, reportID uint64) (api.QueryAdminEventReportResponse, error)
AdminDeleteEventReport(ctx context.Context, reportID uint64) error