Merge pull request #1116 from vector-im/cross-signing/pre-release-fixes

Remove console.logs from code
This commit is contained in:
R Midhun Suresh 2023-09-04 12:50:11 +05:30 committed by GitHub
commit 363ea20e2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 0 additions and 11 deletions

View File

@ -192,7 +192,6 @@ export class SecretSharing {
}
if (!await crossSigning.isOurUserDeviceTrusted(device)) {
// We don't want to accept secrets from an untrusted device
console.log("received secret, but ignoring because not verified");
return;
}
const content = decryptionResult.event.content!;

View File

@ -441,7 +441,6 @@ export function tests() {
.theyWinConflict()
.fixtures();
const startingMessage = receivedMessages.get(VerificationEventType.Start);
console.log(receivedMessages);
const { sas } = await createSASRequest(
ourUserId,
ourDeviceId,
@ -464,7 +463,6 @@ export function tests() {
//@ts-ignore
let stage = sas.startStage;
for (const stageClass of expectedOrder) {
console.log("Checking", stageClass.constructor.name, stage.constructor.name);
assert.strictEqual(stage instanceof stageClass, true);
stage = stage.nextStage;
}
@ -482,7 +480,6 @@ export function tests() {
.youWinConflict()
.fixtures();
const startingMessage = receivedMessages.get(VerificationEventType.Start);
console.log(receivedMessages);
const { sas, logger } = await createSASRequest(
ourUserId,
ourDeviceId,
@ -509,7 +506,6 @@ export function tests() {
//@ts-ignore
let stage = sas.startStage;
for (const stageClass of expectedOrder) {
console.log("Checking", stageClass.constructor.name, stage.constructor.name);
assert.strictEqual(stage instanceof stageClass, true);
stage = stage.nextStage;
}
@ -607,7 +603,6 @@ export function tests() {
.youSentRequest()
.theySentStart()
.fixtures();
console.log("receivedMessages", receivedMessages);
const { sas, clock } = await createSASRequest(
ourUserId,
ourDeviceId,

View File

@ -160,7 +160,6 @@ export class RoomChannel extends Disposables implements IChannel {
entry.isLoadedFromStorage) {
return;
}
console.log("entry", entry);
await this.log.wrap("RoomChannel.handleRoomMessage", async (log) => {
if (!this.id) {
throw new Error("Couldn't find event-id of request message!");
@ -171,7 +170,6 @@ export class RoomChannel extends Disposables implements IChannel {
* m.key.verification.cancel message to the other device indicating as such.
* This does not apply for inbound m.key.verification.start or m.key.verification.cancel messages.
*/
console.log("Received entry with unknown transaction id: ", entry);
await this.cancelVerification(CancelReason.UnknownTransaction);
return;
}

View File

@ -168,12 +168,9 @@ export class ToDeviceChannel extends Disposables implements IChannel {
* m.key.verification.cancel message to the other device indicating as such.
* This does not apply for inbound m.key.verification.start or m.key.verification.cancel messages.
*/
console.log("Received event with unknown transaction id: ", event);
await this.cancelVerification(CancelReason.UnknownTransaction);
return;
}
console.log("event", event);
log.log({ l: "event", event });
this.resolveAnyWaits(event);
this.receivedMessages.set(event.type, event);
if (event.type === VerificationEventType.Ready) {