From c10969f520fbb8b2bbbbac9c3c8c8713e125c11f Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Wed, 29 Apr 2020 11:40:04 +0200 Subject: [PATCH] enable encryption when NOT inviting 3pids --- src/components/views/dialogs/InviteDialog.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/views/dialogs/InviteDialog.js b/src/components/views/dialogs/InviteDialog.js index 759228babd..e48c6866bf 100644 --- a/src/components/views/dialogs/InviteDialog.js +++ b/src/components/views/dialogs/InviteDialog.js @@ -578,7 +578,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 has3PidMembers = targets.some(t => t instanceof ThreepidMember); - if (has3PidMembers) { + if (!has3PidMembers) { const client = MatrixClientPeg.get(); const allHaveDeviceKeys = await canEncryptToAllUsers(client, targetIds); if (allHaveDeviceKeys) {