Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Half-Shot committed Dec 19, 2023
1 parent 277d3d8 commit 78d48dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/e2ee/CryptoClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {
Attachment,
EncryptedAttachment,
} from "@matrix-org/matrix-sdk-crypto-nodejs";
import { rm } from "fs/promises";

import { MatrixClient } from "../MatrixClient";
import { LogService } from "../logging/LogService";
Expand All @@ -27,7 +28,6 @@ import { RustSdkCryptoStorageProvider } from "../storage/RustSdkCryptoStoragePro
import { RustEngine, SYNC_LOCK_NAME } from "./RustEngine";
import { MembershipEvent } from "../models/events/MembershipEvent";
import { IKeyBackupInfoRetrieved } from "../models/KeyBackup";
import { rm } from "fs/promises";

/**
* Manages encryption for a MatrixClient. Get an instance from a MatrixClient directly
Expand Down Expand Up @@ -73,7 +73,7 @@ export class CryptoClient {
if (this.ready) return; // stop re-preparing here

const storedDeviceId = await this.client.cryptoStore.getDeviceId();
const { user_id: userId, device_id: deviceId} = (await this.client.getWhoAmI());
const { user_id: userId, device_id: deviceId } = (await this.client.getWhoAmI());

if (!deviceId) {
throw new Error("Encryption not possible: server not revealing device ID");
Expand Down

0 comments on commit 78d48dc

Please sign in to comment.