We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4211968 commit a9908ecCopy full SHA for a9908ec
ee/packages/federation-matrix/src/api/middlewares/canAccessResource.ts
@@ -2,7 +2,11 @@ import { errCodes } from '@rocket.chat/federation-sdk';
2
import type { EventAuthorizationService } from '@rocket.chat/federation-sdk';
3
import { createMiddleware } from 'hono/factory';
4
5
-function extractEntityId(params: RoutesParams): { type: 'event' | 'media' | 'room'; id: string } | undefined {
+function extractEntityId(params: {
6
+ eventId?: string;
7
+ mediaId?: string;
8
+ roomId?: string;
9
+}): { type: 'event' | 'media' | 'room'; id: string } | undefined {
10
if (params.eventId) {
11
return { type: 'event', id: params.eventId };
12
}
0 commit comments