Apply the auto-fixable lint rules and the formatter, and drop the Vite build artifacts.
Checks / checks (push) Successful in 2m11s
Trigger cinny-mobile / dispatch (push) Successful in 1s

This commit is contained in:
2026-11-01 04:23:53 +11:00
parent 3cd159a63e
commit a6ad8651b3
605 changed files with 11480 additions and 9125 deletions
+11 -11
View File
@@ -231,7 +231,7 @@ export const useCommands = (mx: MatrixClient, room: Room): CommandRecord => {
exe: async (payload) => {
const rawIds = splitWithSpace(payload);
const roomIdOrAliases = rawIds.filter(
(idOrAlias) => isRoomId(idOrAlias) || isRoomAlias(idOrAlias)
(idOrAlias) => isRoomId(idOrAlias) || isRoomAlias(idOrAlias),
);
roomIdOrAliases.forEach(async (idOrAlias) => {
await mx.joinRoom(idOrAlias);
@@ -372,7 +372,7 @@ export const useCommands = (mx: MatrixClient, room: Room): CommandRecord => {
...content,
displayname: nick,
},
mx.getSafeUserId()
mx.getSafeUserId(),
);
},
},
@@ -394,7 +394,7 @@ export const useCommands = (mx: MatrixClient, room: Room): CommandRecord => {
...content,
avatar_url: payload,
},
mx.getSafeUserId()
mx.getSafeUserId(),
);
}
},
@@ -445,7 +445,7 @@ export const useCommands = (mx: MatrixClient, room: Room): CommandRecord => {
const startEventId = result.event_id;
const path = `/rooms/${encodeURIComponent(room.roomId)}/context/${encodeURIComponent(
startEventId
startEventId,
)}`;
const eventContext = await mx.http.authedRequest<IContextResponse>(Method.Get, path, {
limit: 0,
@@ -459,7 +459,7 @@ export const useCommands = (mx: MatrixClient, room: Room): CommandRecord => {
token,
20,
Direction.Forward,
undefined
undefined,
);
const { end, chunk } = response;
// remove until the latest event;
@@ -469,14 +469,14 @@ export const useCommands = (mx: MatrixClient, room: Room): CommandRecord => {
(roomEvent) =>
(messageTypes.length > 0 ? messageTypes.includes(roomEvent.type) : true) &&
users.includes(roomEvent.sender) &&
roomEvent.unsigned?.redacted_because === undefined
roomEvent.unsigned?.redacted_because === undefined,
);
const eventIds = eventsToDelete.map((roomEvent) => roomEvent.event_id);
// eslint-disable-next-line no-await-in-loop
await rateLimitedActions(eventIds, (eventId) =>
mx.redactEvent(room.roomId, eventId, undefined, { reason })
mx.redactEvent(room.roomId, eventId, undefined, { reason }),
);
}
},
@@ -501,7 +501,7 @@ export const useCommands = (mx: MatrixClient, room: Room): CommandRecord => {
const serverAcl = getStateEvent(
room,
StateEvent.RoomServerAcl
StateEvent.RoomServerAcl,
)?.getContent<RoomServerAclEventContent>();
const aclContent: RoomServerAclEventContent = {
@@ -520,10 +520,10 @@ export const useCommands = (mx: MatrixClient, room: Room): CommandRecord => {
});
aclContent.allow = aclContent.allow?.filter(
(servername) => !removeAllowList.includes(servername)
(servername) => !removeAllowList.includes(servername),
);
aclContent.deny = aclContent.deny?.filter(
(servername) => !removeDenyList.includes(servername)
(servername) => !removeDenyList.includes(servername),
);
aclContent.allow?.sort();
@@ -533,7 +533,7 @@ export const useCommands = (mx: MatrixClient, room: Room): CommandRecord => {
},
},
}),
[mx, room, navigateRoom]
[mx, room, navigateRoom],
);
return commands;