Apply the auto-fixable lint rules and the formatter, and drop the Vite build artifacts.
This commit is contained in:
@@ -15,7 +15,7 @@ import { getMxIdServer } from '../../utils/matrix';
|
||||
export const createRoomCreationContent = (
|
||||
type: RoomType | undefined,
|
||||
allowFederation: boolean,
|
||||
additionalCreators: string[] | undefined
|
||||
additionalCreators: string[] | undefined,
|
||||
): object => {
|
||||
const content: Record<string, any> = {};
|
||||
if (typeof type === 'string') {
|
||||
@@ -34,7 +34,7 @@ export const createRoomCreationContent = (
|
||||
export const createRoomJoinRulesState = (
|
||||
kind: CreateRoomKind,
|
||||
parent: Room | undefined,
|
||||
knock: boolean
|
||||
knock: boolean,
|
||||
) => {
|
||||
let content: RoomJoinRulesEventContent = {
|
||||
join_rule: knock ? JoinRule.Knock : JoinRule.Invite,
|
||||
@@ -134,7 +134,7 @@ export const createRoom = async (mx: MatrixClient, data: CreateRoomData): Promis
|
||||
creation_content: createRoomCreationContent(
|
||||
data.type,
|
||||
data.allowFederation,
|
||||
data.additionalCreators
|
||||
data.additionalCreators,
|
||||
),
|
||||
initial_state: initialState,
|
||||
};
|
||||
@@ -150,7 +150,7 @@ export const createRoom = async (mx: MatrixClient, data: CreateRoomData): Promis
|
||||
suggested: false,
|
||||
via: [getMxIdServer(mx.getUserId() ?? '') ?? ''],
|
||||
},
|
||||
result.room_id
|
||||
result.room_id,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user