mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-17 14:05:04 +08:00
fixed inexplicible scope bug
This commit is contained in:
parent
164b355ffe
commit
0e0aadd3f2
@ -31,7 +31,7 @@ import dis from "../../../dispatcher";
|
||||
import IdentityAuthClient from "../../../IdentityAuthClient";
|
||||
import Modal from "../../../Modal";
|
||||
import {humanizeTime} from "../../../utils/humanize";
|
||||
import createRoom from "../../../createRoom";
|
||||
import createRoom, {canEncryptToAllUsers} from "../../../createRoom";
|
||||
import {inviteMultipleToRoom} from "../../../RoomInvite";
|
||||
import SettingsStore from '../../../settings/SettingsStore';
|
||||
|
||||
@ -535,7 +535,7 @@ export default class InviteDialog extends React.PureComponent {
|
||||
// Check whether all users have uploaded device keys before.
|
||||
// If so, enable encryption in the new room.
|
||||
const client = MatrixClientPeg.get();
|
||||
const allHaveDeviceKeys = await createRoom.canEncryptToAllUsers(client, targetIds);
|
||||
const allHaveDeviceKeys = await canEncryptToAllUsers(client, targetIds);
|
||||
if (allHaveDeviceKeys) {
|
||||
createRoomOptions.encryption = true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user