Skip to content

Commit a3a0c40

Browse files
committed
lint
1 parent 7ec182e commit a3a0c40

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/crypto/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ import { ISyncStateData } from "../sync";
8686
import { CryptoStore } from "./store/base";
8787
import { IVerificationChannel } from "./verification/request/Channel";
8888
import { TypedEventEmitter } from "../models/typed-event-emitter";
89+
import { IContent } from "../models/event";
8990

9091
const DeviceVerification = DeviceInfo.DeviceVerification;
9192

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

2885-
const encryptedContent = await alg.encryptMessage(room, event.getType(), content);
2886+
const encryptedContent = await alg.encryptMessage(room, event.getType(), content) as IContent;
28862887

28872888
if (mRelatesTo) {
28882889
encryptedContent['m.relates_to'] = mRelatesTo;

src/crypto/verification/request/VerificationRequest.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -585,6 +585,7 @@ export class VerificationRequest<
585585

586586
const cancelEvent = this.getEventByEither(CANCEL_TYPE);
587587
if ((this._cancelled || cancelEvent) && phase() !== PHASE_DONE) {
588+
console.log("Got cancellation event", cancelEvent);
588589
transitions.push({ phase: PHASE_CANCELLED, event: cancelEvent });
589590
return transitions;
590591
}

0 commit comments

Comments
 (0)