Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
richvdh committed Nov 29, 2022
1 parent 7ec182e commit 1bb5c67
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/crypto/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ import { ISyncStateData } from "../sync";
import { CryptoStore } from "./store/base";
import { IVerificationChannel } from "./verification/request/Channel";
import { TypedEventEmitter } from "../models/typed-event-emitter";
import { IContent } from "../models/event";

const DeviceVerification = DeviceInfo.DeviceVerification;

Expand Down Expand Up @@ -2882,7 +2883,7 @@ export class Crypto extends TypedEventEmitter<CryptoEvent, CryptoEventHandlerMap
delete content['io.element.performance_metrics'];
}

const encryptedContent = await alg.encryptMessage(room, event.getType(), content);
const encryptedContent = await alg.encryptMessage(room, event.getType(), content) as IContent;

if (mRelatesTo) {
encryptedContent['m.relates_to'] = mRelatesTo;
Expand Down

0 comments on commit 1bb5c67

Please sign in to comment.