mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-17 14:05:04 +08:00
enable encryption when NOT inviting 3pids
This commit is contained in:
parent
a8205d21f1
commit
c10969f520
@ -578,7 +578,7 @@ export default class InviteDialog extends React.PureComponent {
|
|||||||
// 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 has3PidMembers = targets.some(t => t instanceof ThreepidMember);
|
const has3PidMembers = targets.some(t => t instanceof ThreepidMember);
|
||||||
if (has3PidMembers) {
|
if (!has3PidMembers) {
|
||||||
const client = MatrixClientPeg.get();
|
const client = MatrixClientPeg.get();
|
||||||
const allHaveDeviceKeys = await canEncryptToAllUsers(client, targetIds);
|
const allHaveDeviceKeys = await canEncryptToAllUsers(client, targetIds);
|
||||||
if (allHaveDeviceKeys) {
|
if (allHaveDeviceKeys) {
|
||||||
|
Loading…
Reference in New Issue
Block a user