Skip to content

Commit 65999f4

Browse files
author
Marcos Defendi
committed
chore: fix lint
1 parent 5a68e80 commit 65999f4

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

apps/meteor/ee/server/hooks/federation/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ callbacks.add(
1717
'native-federation-on-after-add-users-to-room ',
1818
);
1919

20-
callbacks.add('afterSetReaction',
20+
callbacks.add(
21+
'afterSetReaction',
2122
async (message: IMessage, params: { user: IUser; reaction: string }): Promise<void> => {
2223
// Don't federate reactions that came from Matrix
2324
if (params.user.username?.includes(':')) {

ee/packages/federation-matrix/src/api/_matrix/invite.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,9 @@ export const getMatrixInviteRoutes = (services: HomeserverServices) => {
142142
},
143143
async (c) => {
144144
const { roomId, eventId } = c.req.param();
145-
const { event, room_version } = await c.req.json();
145+
const { event, room_version: roomVersion } = await c.req.json();
146146

147-
const response = await invite.processInvite(event, roomId, eventId, room_version);
147+
const response = await invite.processInvite(event, roomId, eventId, roomVersion);
148148

149149
return {
150150
body: response,

ee/packages/federation-matrix/src/api/_matrix/profiles.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ export const getMatrixProfilesRoutes = (services: HomeserverServices) => {
413413
const url = new URL(c.req.url);
414414
const verParams = url.searchParams.getAll('ver');
415415

416-
const response = await profile.makeJoin(roomId, userId, verParams.length > 0 ? verParams as RoomVersion[] : ['1']);
416+
const response = await profile.makeJoin(roomId, userId, verParams.length > 0 ? (verParams as RoomVersion[]) : ['1']);
417417

418418
return {
419419
body: {

0 commit comments

Comments
 (0)