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

Commit 54997c5

Browse files
committed
Add a log call to debug failing CI tests
1 parent 8b67257 commit 54997c5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/components/structures/LegacyCallEventGrouper.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import { EventType } from "matrix-js-sdk/src/@types/event";
1818
import { MatrixEvent } from "matrix-js-sdk/src/models/event";
1919
import { CallEvent, CallState, CallType, MatrixCall } from "matrix-js-sdk/src/webrtc/call";
2020
import { EventEmitter } from 'events';
21+
import { logger } from "../../../../matrix-js-sdk/lib/logger";
2122

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

0 commit comments

Comments
 (0)