diff --git a/src/components/views/rooms/AppsDrawer.tsx b/src/components/views/rooms/AppsDrawer.tsx
index cd5e9bc889e..bf4e0fb0ac5 100644
--- a/src/components/views/rooms/AppsDrawer.tsx
+++ b/src/components/views/rooms/AppsDrawer.tsx
@@ -110,7 +110,6 @@ export default class AppsDrawer extends React.Component
{
const classNames = {
handle: "mx_ResizeHandle",
vertical: "mx_ResizeHandle_vertical",
- reverse: "mx_ResizeHandle_reverse",
};
const collapseConfig = {
onResizeStart: () => {
@@ -267,7 +266,7 @@ export default class AppsDrawer extends React.Component {
if (i < 1) return app;
return (
- apps.length / 2} />
+
{app}
);
diff --git a/src/components/views/settings/account/EmailAddresses.tsx b/src/components/views/settings/account/EmailAddresses.tsx
index c90e1c2768c..08e014c65b8 100644
--- a/src/components/views/settings/account/EmailAddresses.tsx
+++ b/src/components/views/settings/account/EmailAddresses.tsx
@@ -94,21 +94,21 @@ export class ExistingEmailAddress extends React.Component
-
+
+
{_t("Remove %(email)s?", { email: this.props.email.address })}
{_t("Remove")}
{_t("Cancel")}
@@ -117,8 +117,8 @@ export class ExistingEmailAddress extends React.Component
- {this.props.email.address}
+
+
{this.props.email.address}
{_t("Remove")}
diff --git a/src/components/views/settings/account/PhoneNumbers.tsx b/src/components/views/settings/account/PhoneNumbers.tsx
index 113baa4639f..ede650642de 100644
--- a/src/components/views/settings/account/PhoneNumbers.tsx
+++ b/src/components/views/settings/account/PhoneNumbers.tsx
@@ -89,21 +89,21 @@ export class ExistingPhoneNumber extends React.Component
-
+
+
{_t("Remove %(phone)s?", { phone: this.props.msisdn.address })}
{_t("Remove")}
{_t("Cancel")}
@@ -112,8 +112,10 @@ export class ExistingPhoneNumber extends React.Component
- +{this.props.msisdn.address}
+
+
+ +{this.props.msisdn.address}
+
{_t("Remove")}
diff --git a/src/components/views/settings/discovery/EmailAddresses.tsx b/src/components/views/settings/discovery/EmailAddresses.tsx
index 7c524266a4e..f11222af481 100644
--- a/src/components/views/settings/discovery/EmailAddresses.tsx
+++ b/src/components/views/settings/discovery/EmailAddresses.tsx
@@ -217,7 +217,7 @@ export class EmailAddress extends React.Component
{_t("Verify the link in your inbox")}
@@ -239,7 +239,7 @@ export class EmailAddress extends React.Component
@@ -249,8 +249,8 @@ export class EmailAddress extends React.Component
- {address}
+
+ {address}
{status}
);
diff --git a/src/components/views/settings/discovery/PhoneNumbers.tsx b/src/components/views/settings/discovery/PhoneNumbers.tsx
index 16f53385aa5..9ae1719259b 100644
--- a/src/components/views/settings/discovery/PhoneNumbers.tsx
+++ b/src/components/views/settings/discovery/PhoneNumbers.tsx
@@ -222,7 +222,7 @@ export class PhoneNumber extends React.Component
+
{_t("Please enter verification code sent via text.")}
@@ -243,7 +243,7 @@ export class PhoneNumber extends React.Component
@@ -253,7 +253,7 @@ export class PhoneNumber extends React.Component
@@ -263,8 +263,8 @@ export class PhoneNumber extends React.Component
- +{address}
+
+ +{address}
{status}
);
diff --git a/src/stores/SetupEncryptionStore.ts b/src/stores/SetupEncryptionStore.ts
index 46c0193f94f..353d361795e 100644
--- a/src/stores/SetupEncryptionStore.ts
+++ b/src/stores/SetupEncryptionStore.ts
@@ -31,6 +31,7 @@ import Modal from "../Modal";
import InteractiveAuthDialog from "../components/views/dialogs/InteractiveAuthDialog";
import { _t } from "../languageHandler";
import { SdkContextClass } from "../contexts/SDKContext";
+import { asyncSome } from "../utils/arrays";
export enum Phase {
Loading = 0,
@@ -108,20 +109,12 @@ export class SetupEncryptionStore extends EventEmitter {
// do we have any other verified devices which are E2EE which we can verify against?
const dehydratedDevice = await cli.getDehydratedDevice();
const ownUserId = cli.getUserId()!;
- const crossSigningInfo = cli.getStoredCrossSigningForUser(ownUserId);
- this.hasDevicesToVerifyAgainst = cli.getStoredDevicesForUser(ownUserId).some((device) => {
+ this.hasDevicesToVerifyAgainst = await asyncSome(cli.getStoredDevicesForUser(ownUserId), async (device) => {
if (!device.getIdentityKey() || (dehydratedDevice && device.deviceId == dehydratedDevice?.device_id)) {
return false;
}
- // check if the device is signed by the cross-signing key stored for our user. Note that this is
- // *different* to calling `cryptoApi.getDeviceVerificationStatus`, because even if we have stored
- // a cross-signing key for our user, we don't necessarily trust it yet (In legacy Crypto, we have not
- // yet imported it into `Crypto.crossSigningInfo`, which for maximal confusion is a different object to
- // `Crypto.getStoredCrossSigningForUser(ownUserId)`).
- //
- // TODO: figure out wtf to to here for rust-crypto
- const verificationStatus = crossSigningInfo?.checkDeviceTrust(crossSigningInfo, device, false, true);
- return !!verificationStatus?.isCrossSigningVerified();
+ const verificationStatus = await cli.getCrypto()?.getDeviceVerificationStatus(ownUserId, device.deviceId);
+ return !!verificationStatus?.signedByOwner;
});
this.phase = Phase.Intro;