mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-22 19:14:52 +01:00
Merge pull request #1116 from vector-im/cross-signing/pre-release-fixes
Remove console.logs from code
This commit is contained in:
commit
363ea20e2a
@ -192,7 +192,6 @@ export class SecretSharing {
|
|||||||
}
|
}
|
||||||
if (!await crossSigning.isOurUserDeviceTrusted(device)) {
|
if (!await crossSigning.isOurUserDeviceTrusted(device)) {
|
||||||
// We don't want to accept secrets from an untrusted device
|
// We don't want to accept secrets from an untrusted device
|
||||||
console.log("received secret, but ignoring because not verified");
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const content = decryptionResult.event.content!;
|
const content = decryptionResult.event.content!;
|
||||||
|
@ -441,7 +441,6 @@ export function tests() {
|
|||||||
.theyWinConflict()
|
.theyWinConflict()
|
||||||
.fixtures();
|
.fixtures();
|
||||||
const startingMessage = receivedMessages.get(VerificationEventType.Start);
|
const startingMessage = receivedMessages.get(VerificationEventType.Start);
|
||||||
console.log(receivedMessages);
|
|
||||||
const { sas } = await createSASRequest(
|
const { sas } = await createSASRequest(
|
||||||
ourUserId,
|
ourUserId,
|
||||||
ourDeviceId,
|
ourDeviceId,
|
||||||
@ -464,7 +463,6 @@ export function tests() {
|
|||||||
//@ts-ignore
|
//@ts-ignore
|
||||||
let stage = sas.startStage;
|
let stage = sas.startStage;
|
||||||
for (const stageClass of expectedOrder) {
|
for (const stageClass of expectedOrder) {
|
||||||
console.log("Checking", stageClass.constructor.name, stage.constructor.name);
|
|
||||||
assert.strictEqual(stage instanceof stageClass, true);
|
assert.strictEqual(stage instanceof stageClass, true);
|
||||||
stage = stage.nextStage;
|
stage = stage.nextStage;
|
||||||
}
|
}
|
||||||
@ -482,7 +480,6 @@ export function tests() {
|
|||||||
.youWinConflict()
|
.youWinConflict()
|
||||||
.fixtures();
|
.fixtures();
|
||||||
const startingMessage = receivedMessages.get(VerificationEventType.Start);
|
const startingMessage = receivedMessages.get(VerificationEventType.Start);
|
||||||
console.log(receivedMessages);
|
|
||||||
const { sas, logger } = await createSASRequest(
|
const { sas, logger } = await createSASRequest(
|
||||||
ourUserId,
|
ourUserId,
|
||||||
ourDeviceId,
|
ourDeviceId,
|
||||||
@ -509,7 +506,6 @@ export function tests() {
|
|||||||
//@ts-ignore
|
//@ts-ignore
|
||||||
let stage = sas.startStage;
|
let stage = sas.startStage;
|
||||||
for (const stageClass of expectedOrder) {
|
for (const stageClass of expectedOrder) {
|
||||||
console.log("Checking", stageClass.constructor.name, stage.constructor.name);
|
|
||||||
assert.strictEqual(stage instanceof stageClass, true);
|
assert.strictEqual(stage instanceof stageClass, true);
|
||||||
stage = stage.nextStage;
|
stage = stage.nextStage;
|
||||||
}
|
}
|
||||||
@ -607,7 +603,6 @@ export function tests() {
|
|||||||
.youSentRequest()
|
.youSentRequest()
|
||||||
.theySentStart()
|
.theySentStart()
|
||||||
.fixtures();
|
.fixtures();
|
||||||
console.log("receivedMessages", receivedMessages);
|
|
||||||
const { sas, clock } = await createSASRequest(
|
const { sas, clock } = await createSASRequest(
|
||||||
ourUserId,
|
ourUserId,
|
||||||
ourDeviceId,
|
ourDeviceId,
|
||||||
|
@ -160,7 +160,6 @@ export class RoomChannel extends Disposables implements IChannel {
|
|||||||
entry.isLoadedFromStorage) {
|
entry.isLoadedFromStorage) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
console.log("entry", entry);
|
|
||||||
await this.log.wrap("RoomChannel.handleRoomMessage", async (log) => {
|
await this.log.wrap("RoomChannel.handleRoomMessage", async (log) => {
|
||||||
if (!this.id) {
|
if (!this.id) {
|
||||||
throw new Error("Couldn't find event-id of request message!");
|
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.
|
* 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.
|
* 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);
|
await this.cancelVerification(CancelReason.UnknownTransaction);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -168,12 +168,9 @@ export class ToDeviceChannel extends Disposables implements IChannel {
|
|||||||
* m.key.verification.cancel message to the other device indicating as such.
|
* 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.
|
* 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);
|
await this.cancelVerification(CancelReason.UnknownTransaction);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
console.log("event", event);
|
|
||||||
log.log({ l: "event", event });
|
|
||||||
this.resolveAnyWaits(event);
|
this.resolveAnyWaits(event);
|
||||||
this.receivedMessages.set(event.type, event);
|
this.receivedMessages.set(event.type, event);
|
||||||
if (event.type === VerificationEventType.Ready) {
|
if (event.type === VerificationEventType.Ready) {
|
||||||
|
Loading…
Reference in New Issue
Block a user