You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-28 15:22:05 +03:00
dont enable e2ee when inviting a 3pid
This commit is contained in:
@ -577,10 +577,13 @@ export default class InviteDialog extends React.PureComponent {
|
|||||||
if (SettingsStore.getValue("feature_cross_signing")) {
|
if (SettingsStore.getValue("feature_cross_signing")) {
|
||||||
// Check whether all users have uploaded device keys before.
|
// Check whether all users have uploaded device keys before.
|
||||||
// If so, enable encryption in the new room.
|
// If so, enable encryption in the new room.
|
||||||
const client = MatrixClientPeg.get();
|
const containsNonMatrixUsers = targets.some(t => !(t instanceof DirectoryMember));
|
||||||
const allHaveDeviceKeys = await canEncryptToAllUsers(client, targetIds);
|
if (!containsNonMatrixUsers) {
|
||||||
if (allHaveDeviceKeys) {
|
const client = MatrixClientPeg.get();
|
||||||
createRoomOptions.encryption = true;
|
const allHaveDeviceKeys = await canEncryptToAllUsers(client, targetIds);
|
||||||
|
if (allHaveDeviceKeys) {
|
||||||
|
createRoomOptions.encryption = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user