Merge branch 'develop' of github.com:matrix-org/matrix-react-sdk into t3chguy/fix/17686
Conflicts: src/components/views/settings/tabs/room/SecurityRoomSettingsTab.tsx src/createRoom.ts
This commit is contained in:
commit
4c42313f99
686 changed files with 5892 additions and 5809 deletions
|
@ -36,7 +36,9 @@ import { isJoinedOrNearlyJoined } from "./utils/membership";
|
|||
import { VIRTUAL_ROOM_EVENT_TYPE } from "./CallHandler";
|
||||
import SpaceStore from "./stores/SpaceStore";
|
||||
import { makeSpaceParentEvent } from "./utils/space";
|
||||
import { Action } from "./dispatcher/actions"
|
||||
import { Action } from "./dispatcher/actions";
|
||||
import { ICreateRoomOpts } from "matrix-js-sdk/src/@types/requests";
|
||||
import { Preset, Visibility } from "matrix-js-sdk/src/@types/partials";
|
||||
|
||||
// we define a number of interfaces which take their names from the js-sdk
|
||||
/* eslint-disable camelcase */
|
||||
|
@ -85,7 +87,7 @@ export default async function createRoom(opts: IOpts): Promise<string | null> {
|
|||
|
||||
const client = MatrixClientPeg.get();
|
||||
if (client.isGuest()) {
|
||||
dis.dispatch({action: 'require_registration'});
|
||||
dis.dispatch({ action: 'require_registration' });
|
||||
return null;
|
||||
}
|
||||
|
||||
|
@ -344,7 +346,7 @@ export async function ensureDMExists(client: MatrixClient, userId: string): Prom
|
|||
encryption = await canEncryptToAllUsers(client, [userId]);
|
||||
}
|
||||
|
||||
roomId = await createRoom({encryption, dmUserId: userId, spinner: false, andView: false});
|
||||
roomId = await createRoom({ encryption, dmUserId: userId, spinner: false, andView: false });
|
||||
await _waitForMember(client, roomId, userId);
|
||||
}
|
||||
return roomId;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue