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 a3a0c40
Show file tree
Hide file tree
Showing 2 changed files with 3 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
1 change: 1 addition & 0 deletions src/crypto/verification/request/VerificationRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -585,6 +585,7 @@ export class VerificationRequest<

const cancelEvent = this.getEventByEither(CANCEL_TYPE);
if ((this._cancelled || cancelEvent) && phase() !== PHASE_DONE) {
console.log("Got cancellation event", cancelEvent);
transitions.push({ phase: PHASE_CANCELLED, event: cancelEvent });
return transitions;
}
Expand Down

0 comments on commit a3a0c40

Please sign in to comment.