Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Add a log call to debug failing CI tests
Browse files Browse the repository at this point in the history
  • Loading branch information
justjanne committed Nov 23, 2022
1 parent 8b67257 commit 54997c5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/structures/LegacyCallEventGrouper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import { EventType } from "matrix-js-sdk/src/@types/event";
import { MatrixEvent } from "matrix-js-sdk/src/models/event";
import { CallEvent, CallState, CallType, MatrixCall } from "matrix-js-sdk/src/webrtc/call";
import { EventEmitter } from 'events';
import { logger } from "../../../../matrix-js-sdk/lib/logger";

import LegacyCallHandler, { LegacyCallHandlerEvent } from '../../LegacyCallHandler';
import { MatrixClientPeg } from "../../MatrixClientPeg";
Expand Down Expand Up @@ -50,6 +51,9 @@ export function buildLegacyCallEventGroupers(
): Map<string, LegacyCallEventGrouper> {
const newCallEventGroupers = new Map();
events?.forEach(ev => {
if (!ev.getType()) {
logger.error("This should never occur, got an event without type: ", ev);
}
if (!ev.getType().startsWith("m.call.") && !ev.getType().startsWith("org.matrix.call.")) {
return;
}
Expand Down

0 comments on commit 54997c5

Please sign in to comment.