mirror of
https://github.com/element-hq/element-web
synced 2024-11-28 12:28:50 +03:00
targets can also contain RoomMember, so take the positive case rather
This commit is contained in:
parent
be13e86b09
commit
a8205d21f1
1 changed files with 2 additions and 2 deletions
|
@ -577,8 +577,8 @@ export default class InviteDialog extends React.PureComponent {
|
|||
if (SettingsStore.getValue("feature_cross_signing")) {
|
||||
// Check whether all users have uploaded device keys before.
|
||||
// If so, enable encryption in the new room.
|
||||
const containsNonMatrixUsers = targets.some(t => !(t instanceof DirectoryMember));
|
||||
if (!containsNonMatrixUsers) {
|
||||
const has3PidMembers = targets.some(t => t instanceof ThreepidMember);
|
||||
if (has3PidMembers) {
|
||||
const client = MatrixClientPeg.get();
|
||||
const allHaveDeviceKeys = await canEncryptToAllUsers(client, targetIds);
|
||||
if (allHaveDeviceKeys) {
|
||||
|
|
Loading…
Reference in a new issue